Master Page in ASP.Net
-
Hi, I am having two users like Admin and User.Now i dont want to Show admin Part to User.For that I have created Two Master Pages,one for Admin and another for User. And in Mater pages I have created menu containing different contents for Admin and User. Admin can view all things but User can't view admin Part. So how to do this ? Any other way ? Thanks.
-
Hi, I am having two users like Admin and User.Now i dont want to Show admin Part to User.For that I have created Two Master Pages,one for Admin and another for User. And in Mater pages I have created menu containing different contents for Admin and User. Admin can view all things but User can't view admin Part. So how to do this ? Any other way ? Thanks.
-
hi You can have one master page. and after login you can change your menu according to user's access privileges. You dont need to have two master pages for that. Hope it helps ;););)
Regards, DJ Rock
-
Hi, I am having two users like Admin and User.Now i dont want to Show admin Part to User.For that I have created Two Master Pages,one for Admin and another for User. And in Mater pages I have created menu containing different contents for Admin and User. Admin can view all things but User can't view admin Part. So how to do this ? Any other way ? Thanks.
-
As u have designed the page for different user then u might be checking the user or password or something like that. check their if the user is "Admin" then view all the content, if the user is "User" then view the content as per
-
Ya i am checking it via role.. but as i have said that i am using .ascx user control in which i have made treeview. and registered that user control in every web page now how can display different .ascx control to every page ?
in User Control, define a property like "_IsAdmin". if he is admin, add the Admin items or not in to menucontrol or treeview control. Or create two menu user control, add both to the page , setting theirs visibility to False. After loging, show whis is necessery :D
-
in User Control, define a property like "_IsAdmin". if he is admin, add the Admin items or not in to menucontrol or treeview control. Or create two menu user control, add both to the page , setting theirs visibility to False. After loging, show whis is necessery :D