Guest User

Untitled

a guest
May 20th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. CheckBoxList chklRoles = (CheckBoxList)frm.FindControl("chklRoles");
  2. foreach (ListItem liRole in chklRoles.Items)
  3. {
  4. if (liRole.Selected)
  5. {
  6. SecurityDS.SC_RoleRow drwRoles = dtblRoles.NewSC_RoleRow();
  7. drwRoles.Name = liRole.Value;
  8. drwRoles.IsActive = false;
  9. dtblRoles.Rows.Add(drwRoles);
  10. }
  11. }
  12. e.Values["userRole"] = dtblRoles;
  13.  
  14. <InsertParameters>
  15.  
  16. <asp:Parameter Name="userRole" Type="Object" />
  17. </InsertParameters>
Add Comment
Please, Sign In to add comment