Creating a dynamic menu asp.net2!!HELP!!!!

S

Sri Reddy

Hi
I want to create a horizontal menu on my website being built using
asp.net2 with menu items based on the "role" of the user who logged into
the system.Role iformation will be read from database...

For ex:
for a user with "Admin" role, i would like to show "Menu Item1", "Menu
Item2", "Menu Item3", "Menu Item4". Where as if the user belongs to
"Help-desk" role, i would like to show only "Menu Item1" and "Menu
Item3"...

Also, i want to provide an alternative to access "Menu Items" if the
java-script is disabled...

Wondering what options do i got....
Thanks
Sri
 
S

Swanand Mokashi

You could use the menu control with SiteMap if you are using ASP.NET 2.0
..You can specify roles in the SiteMap.

Not sure if 2.0 is an option for you though

--
Swanand Mokashi
Microsoft Certified Solution Developer (.NET) - Early Achiever
Microsoft Certified Application Developer (.NET)

http://www.dotnetgenerics.com/
DotNetGenerics.com -- anything and everything about Microsoft .NET
technology ...

http://www.swanandmokashi.com/
http://www.swanandmokashi.com/HomePage/WebServices/
Home of the Stock Quotes, Quote of the day and Horoscope web services
 
S

Sri Reddy

Thanks Swanand!!!

Yes, I am using ASP.NET 2 version with C#. does it work with Javascript
diabled browsers too?

Appreciate if you can point me to any resources or examples!!!!
 
S

Sri Reddy

Thanks Swanand!!!

Yes, I am using ASP.NET 2 version with C#. does it work with Javascript
disabled browsers too?

Appreciate if you can point me to any resources or examples!!!!
 
S

Swanand Mokashi

http://msconline.maconstate.edu/tutorials/ASPNET2/ASPNET10/aspnet10-02.aspx
http://www.eggheadcafe.com/articles/20050531.asp
http://www.ondotnet.com/pub/a/dotnet/2004/09/13/site_nav_aspnet20.html

Yes it will render correctly based on what browser your user is using.

--
Swanand Mokashi
Microsoft Certified Solution Developer (.NET) - Early Achiever
Microsoft Certified Application Developer (.NET)

http://www.dotnetgenerics.com/
DotNetGenerics.com -- anything and everything about Microsoft .NET
technology ...

http://www.swanandmokashi.com/
http://www.swanandmokashi.com/HomePage/WebServices/
Home of the Stock Quotes, Quote of the day and Horoscope web services
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top