protected void btnUpdateAge_Click(object sender, EventArgs e) { lblMessage.Visible = false; Users.AddAgeToUser(UserName, Convert.ToInt16(dlistAges.SelectedValue)); lblMessage.Visible = true; lblMessage.ForeColor = GREEN; lblMessage.Text = STR_AGE_UPDATED_MESSAGE; }
protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e) { //User has already been successfully created // This is an addon, which adds the user to a given role. Roles.AddUserToRole(CreateUserWizard1.UserName, dlistRoles.SelectedValue); Schools.AddUserToSchool(CreateUserWizard1.UserName, Convert.ToInt64(dlistSchools.SelectedValue)); Grades.AddUserToGrade(CreateUserWizard1.UserName, Convert.ToInt16(dlistGrades.SelectedValue)); Users.AddAgeToUser(CreateUserWizard1.UserName, Convert.ToInt16(dlistAges.SelectedValue)); Users.AddGenderToUser(CreateUserWizard1.UserName, rblistGender.SelectedValue); //Users.AddGradeToUser(CreateUserWizard1.UserName, Convert.ToInt(dlistGrades.SelectedValue)); }