S
STech
Hi,
I have several aspx pages (user.aspx, admin.aspx...) that contains one
common user control (foo.ascx). Foo.ascx is responsible for checking the
roles of the user logged on and display data based on role. If a person with
only "user" access tries to access, say, admin.aspx, I want to redirect the
user to user.aspx. The problem is that, in this case, the aspx page loads
first before the foo.ascx loads.
Is there a way to force a method in foo.ascx to fire first before the aspx
page is loaded? This way I can redirect the user before the page competes
loading.
Thanks.
I have several aspx pages (user.aspx, admin.aspx...) that contains one
common user control (foo.ascx). Foo.ascx is responsible for checking the
roles of the user logged on and display data based on role. If a person with
only "user" access tries to access, say, admin.aspx, I want to redirect the
user to user.aspx. The problem is that, in this case, the aspx page loads
first before the foo.ascx loads.
Is there a way to force a method in foo.ascx to fire first before the aspx
page is loaded? This way I can redirect the user before the page competes
loading.
Thanks.