Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 11th, 2005, 12:50 PM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default About dynamic navigator bar...

hey folks,
I would like to have a dynamic navigator bar.
I hope I could change the content of Navmenu.xml dynamically due to permission issues.
ie. different people with differnt permissions will see different navigator bars.
I have tried to write a new xml depend on individual user after a user has been authenticated successfully.
However, it failed due to path problems. I even can't reach the config dir.
After a few minutes, I found it's a stupid idea.
It seems that no one can change the physical xml content at run time.

I think another approach that might work out is to add a attribute named xml to the navigator control. This new attribute will replace the original navmenu.xml. There is no need to write a xml doc on disk.

And my question is how and when I can pass the information to the navigators?

Is this another stupid idea or this idea will work? Or anyone has better idea?

Thanks!!



 
Old October 14th, 2005, 07:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My menu control uses HTML/CSS dynamically generated from a user control. I am using an XML config file for this, but my idea was to store the users perms in the DB and have the user control make a new menu by reading that info from the DB. You can cache that user control to avoid a DB hit on every postback.

But the new asp.net 2.0 has a couple nice controls to do this work. There's a standard Menu control that has a lot of flexibility. This links to the Sitmap, which can have group info. Basically, you assign users a group that determines their menu, and the sitemap decides which group gets which menu options, and the the menu control dynamically gets his info from the sitemap. It's a simple, but powerful design.

Of course, you can tie in personalization, and you'll want to use the membership features to set up and utilize user accounts. It easily eliminates maybe 75% of the code you need to write, plus its more flexible for end users. They can pick a favorite skin, for example. This is basically done using something like CSS (a skin file ia a lot like CSS but the rules are different from CSS in terms of what elements override each other).

All of this will be in the second edition of our favorite book.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How create dynamic bar graph in php [email protected] PHP How-To 0 February 28th, 2007 03:04 AM
Binding Navigator sirmilt BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 March 13th, 2006 07:34 AM
How do disable Menu bar & address bar for browser bekim HTML Code Clinic 2 January 7th, 2005 12:33 AM
How to trap Mouse events on Title bar/Caption bar chiefouko Pro VB.NET 2002/2003 0 September 21st, 2004 02:42 AM
Bar Chart with Item names beside bar jmurdock BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 July 23rd, 2004 01:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.