62,243
社区成员




protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
{
string cUserName = CreateUserWizard1.UserName;
string cEmail = CreateUserWizard1.Email;
string cPsw = CreateUserWizard1.Password;
TextBox NicknameBox = CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("txtNickname") as TextBox;
Label labNicknameMsg = CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("labNicknameCreatingMsg") as Label;
string cNickname = string.Empty;
if (NicknameBox != null)
{
cNickname = NicknameBox.Text;
}
UserProfile tUserProfile = GetCFHObject.GetUserProfile(cUserName);
try
{
tUserProfile.DB.Nickname = cNickname;
tUserProfile.Add(cUserName);
}
catch (Exception exUserProfileErr)
{
//labNicknameMsg.Text = "创建用户名失败!" + exUserProfileErr.Message;
}
}