<script type="text/javascript">
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><script> var tixa_nadInIframe=false;
var tixa_nadRowCount=1;
var tixa_nadColumnCount=4;
var tixa_nadHeight=85;
var tixa_nadWidth=680;
var tixa_nadBorderColor='9178E7';
var tixa_nadBgColor='F0ECFF';
var tixa_nadTitleColor='0000ff';
var tixa_nadDescColor='000000';
var tixa_adType='text';
</script><script src='http://union.narrowad.com/proxy/narrowad.jsp?wid=11978&cid=24072'></script>
当我使用默认的ASP.NET 2.0中的会员管理,当你需要添加某些字段例如增加用户生日,我们可以使用profile来实现此类的功能,profile适合于存储少量的用户数据,用户数据存在数据库中。
使用方法:
在WEB.Confi中添加
<profile>
<properties>
<add
name="RenWuPiShu" type="String" /> //添加的profile字段
</properties>
</profile>
然后只要通过程序给他赋值就可以了
如
protected void Button1_Click(object sender, EventArgs e)
{
this.Profile.RenWuPiShu = TextBox1.Text;
}
调用方式就是
this.Profile.RenWuPiShu就可以了