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


Top 5 Contributors of the Month
david stephan

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
Hi

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....

Thanks....

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

Hi,

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

Thanks,
Amit
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,
GowthamManju
Chennai



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

Hi,

set the visibility property depends upon the roles..

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

Hi

can anyone give me the coding?



Thanks



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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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