ASP.net master page redirect
-
Hi all Currently i am in A.Aspx and i have 2 other pages lets say B.aspx and C.aspx and all these page have on master page say Master.aspx. one user log in into web site and he is currently on A.aspx page and he can see only A.aspx and B.aspx can not see C.aspx but once he change the address in Browser to C.aspx he was able to go on that page i have one list which contain permission but when i am checking this thing in Master Page and redirecting him to his default page. it is giving exception Unable to evaluate expression because the code is optimized or native frame is on top of the stack is it possible to redirect page to other page on master page load event because master page is loaded yet. thanks,
-
Hi all Currently i am in A.Aspx and i have 2 other pages lets say B.aspx and C.aspx and all these page have on master page say Master.aspx. one user log in into web site and he is currently on A.aspx page and he can see only A.aspx and B.aspx can not see C.aspx but once he change the address in Browser to C.aspx he was able to go on that page i have one list which contain permission but when i am checking this thing in Master Page and redirecting him to his default page. it is giving exception Unable to evaluate expression because the code is optimized or native frame is on top of the stack is it possible to redirect page to other page on master page load event because master page is loaded yet. thanks,
I would rather put the Authorization code in a base class and inherit in all the other classes. Doing Authorization from Master pages is not a good practice.
-
I would rather put the Authorization code in a base class and inherit in all the other classes. Doing Authorization from Master pages is not a good practice.
yes, i am also support Dinesh. put your Authorization code in derived pages of MasterPage. MasterPage Mainly Used to reduce Design Works.
Raju.M