.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Master page with 3 logins

Posted By: sheeba     Posted Date: July 05, 2011    Points:5   Category :ASP.Net

I have master page with 12 menus which is in left side...

i have 3 logins namely Admin,employee and customer...

Now i want to show these menus according to these 3 logins..how to separate these under codings?

ie) i want to show every menus for admin,if admin login

if employee login the page means need to show only employee details like that...

now i have only one master page,which is common for all 3.what i want to do here?

can u tell me...?

Note: i did not do everything in web.config file...

reply me soon....


Author: Amit Mehra             
Posted Date: July 05, 2011     Points: 20   


You can do in many ways..one way is have 3 web user control for menu and depending upon login you can load the control dynamically..

Hope this will give you an idea

Please "Mark As Answer " if this post help you.
Author: Gowthammanju             
Posted Date: July 05, 2011     Points: 20   

Hey u can provide single login page for these three logins as

by taking out the usertype there by u can redirected to the necessary page do u want

while registering just add usertype there by u can seperate users

login based on which u need to access the page

Thanks & Regards,

Mark if the answer is true
Author: Sasi Prabhu             
Posted Date: July 05, 2011     Points: 20   


set the visibility property depends upon the roles..

Thanks & Regards,
Sasi Prabhu.
Author: sheeba             
Posted Date: July 06, 2011     Points: 20   


can anyone give me the coding?


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend