void gvForm_RowCommand(object sender, GridViewCommandEventArgs e)
{
int FormID = 0;
ExitMode();
switch (e.CommandName)
{
case "EditPermissionRole":
int.TryParse(e.CommandArgument.ToString(), out FormID);
if (FormID > 0)
{
ViewState[CMSViewStateManager.FormID] = FormID;
RoleMode();
FillRoles(0);
upnlPermissionRole.Update();
}
break;
case "EditPermissionUser":
int.TryParse(e.CommandArgument.ToString(), out FormID);
if (FormID > 0)
{
ViewState[CMSViewStateManager.FormID] = FormID;
UserMode();
FillUsers(0);
upnlPermissionUser.Update();
}
break;
}
}
#endregion