Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class HomePage : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if(!SetupUserPermission.isSessionExpired())
- {
- string UserId = Session["UserId"].ToString();
- SetupUserPermission.SetupUserRights(ref this.Page, Convert.ToInt32(UserId));
- }
- }
- }
- Page tmp = Page;
- SetupUserPermission.SetupUserRights(ref tmp, Convert.ToInt32(UserId));
- Page = tmp;
- SetupUserPermission.SetupUserRights(this, ...);
Add Comment
Please, Sign In to add comment