如何在ASP.NET网站管理工具中添加有关用户注册的附加属性?
嗨,我想在用户通过ASP.NET网站管理工具注册时添加其他属性。默认情况下,当我们从管理工具注册使用时,它包含密码、用户名、安全答案等。我想在其中添加其他字段,如地址。有一种方法可以做到这一点如何在ASP.NET网站管理工具中添加有关用户注册的附加属性?,asp.net,.net,asp.net-membership,roles,administration,Asp.net,.net,Asp.net Membership,Roles,Administration,嗨,我想在用户通过ASP.NET网站管理工具注册时添加其他属性。默认情况下,当我们从管理工具注册使用时,它包含密码、用户名、安全答案等。我想在其中添加其他字段,如地址。有一种方法可以做到这一点 请向我推荐可用的链接或示例代码。如果我正确理解您的问题,请尝试以下操作: 在web.config中: <profile defaultProvider="SqlProfileProvider"> <providers> <remove name="AspNetSqlProfi
请向我推荐可用的链接或示例代码。如果我正确理解您的问题,请尝试以下操作: 在web.config中:
<profile defaultProvider="SqlProfileProvider">
<providers>
<remove name="AspNetSqlProfileProvider"/>
<add name="SqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="LocalSqlServer" />
</providers>
<properties>
<add name="Address" type="string"/>
<add name="Age" type="int32"/>
</properties>
</profile>
如果我正确理解您的问题,请尝试以下方法: 在web.config中:
<profile defaultProvider="SqlProfileProvider">
<providers>
<remove name="AspNetSqlProfileProvider"/>
<add name="SqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="LocalSqlServer" />
</providers>
<properties>
<add name="Address" type="string"/>
<add name="Age" type="int32"/>
</properties>
</profile>