Exemple #1
0
 protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
 {
     if (!string.IsNullOrEmpty(cmbRoles.SelectedValue))
     {
         UserBL.AddRoleToUser(int.Parse(Request["UserId"]), int.Parse(cmbRoles.SelectedValue));
         grdUserRoles.Rebind();
         cmbRoles.DataBind();
         ImageButton1.Visible = cmbRoles.Items.Count > 0;
     }
 }