MembershipUser user = Membership.CreateUser(strUserName, strPwd, txtMail.Text.Tri());
order.OrderId = Guid.NewGuid();
order.OrderDate = DateTime.Now;
...ProfileCommon profile = Profile.GetProfile(user.UserName);
Profile.title = ddpTitle.SelectedItem.Text;
Profile.birthday = ddpDay.SelectedItem.Text + "-" + ddpMonth.SelectedItem.Text + "-" + ddpYear.SelectedItem.Text;
Profile.houseno = txtHouseNo.Text;
Profile.postcode = TxtPostCode.Text;
...<profile>
<properties>
<add name ="title" type="string"/>
<add name ="birthday" type="string"/>
<add name="houseno" type="string"/>
<add name="postcode" type ="string"/>
<add name ="address1" type="string"/>
<add name ="address2" type="string"/>
<add name ="address3" type="string"/>
<add name ="address4" type="string"/>
<add name ="mobileTel" type="string"/>
<add name ="daytimeTel" type="string"/>
<add name ="email" type ="string"/>
</properties>
</profile>问题:当Profile.title = ddpTitle.SelectedItem.Text; 时异常:{"This property cannot be set for anonymous users."}
请教?
解决方案 »
- 读二进制大对象问题
- asp.net DropDownList拿值的问题,急
- 非哥,从一个页面登录后返回原页面如何实现的
- 页面刷新时,如何防止复选框保留上次操作选中的值?
- 考试系统效率和稳定性的问题
- 引用了一个dll库,出错了
- 图片保存路径的问题
- 找不到类型或者空间名称"docflow"( 缺少using指令或程序集引用)
- 请问:如何使在一个页面中的连接所指向的内容在另一个页面中的frame中打开么
- 怎样能令代码生成的控件放在特定的位置?
- 功能:縱向調整的時候,DataGrid的Header不動,橫向調整的時候,DataGrid的Header隨之動@@@@@@@@@@@@@
- 一个无限级的分类,还能在里面添加新闻管理
<anonymousIdentification enabled="true"/>