Ejemplo n.º 1
0
 /// <summary>
 /// Handles the Load event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!KbContext.CurrentKb.HasUserAdminPermission)
     {
         RedirectorAdmin.GoToUserEditPage(KbContext.CurrentUserId);
         return;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles the Click event of the buttonEdit control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void ButtonEditClick(object sender, EventArgs e)
 {
     RedirectorAdmin.GoToUserEditPage(gridUsers.GetIntDataKey((Control)sender));
 }