Exemplo n.º 1
0
 protected void btnUpdateGradeLevel_Click(object sender, EventArgs e)
 {
     Response.Write("Name: [" + UserName + "]; GradeLevelId: [" + Convert.ToInt32(dlistGrades.SelectedValue) + "]");
     lblMessage.Visible = false;
     if (Users.AddGradeLevelToUser(UserName, Convert.ToInt32(dlistGrades.SelectedValue)))
     {
         lblMessage.Visible   = true;
         lblMessage.ForeColor = GREEN;
         lblMessage.Text      = STR_GRADE_LEVEL_UPDATED_MESSAGE;
     }
     else
     {
         lblMessage.Visible   = true;
         lblMessage.ForeColor = RED;
         lblMessage.Text      = STR_GRADE_LEVEL_FAILED_MESSAGE;
     }
 }