Esempio n. 1
0
 protected void btnApply_Click(object sender, EventArgs e)
 {
     for (intCommon = 0; intCommon < chkMenuList.Items.Count; intCommon++)
     {
         if (chkMenuList.Items[intCommon].Selected == true)
         {
             objCommonClass.ApplyRolesForMenu(int.Parse(chkMenuList.Items[intCommon].Value), ddlRoles.SelectedValue.ToString(), "Y");
         }
         else
         {
             objCommonClass.ApplyRolesForMenu(int.Parse(chkMenuList.Items[intCommon].Value), ddlRoles.SelectedValue.ToString(), "N");
         }
     }
     lblMessage.Text = CommonClass.getErrorWarrning(enuErrorWarrning.RecordUpdated, enuMessageType.UserMessage, true, "Roles has been successfully applied.");;
     BindAll();
 }