CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 6/16/2006 12:33:34 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
johram
Asp.Net User
Need advice on how to implement menu6/16/2006 12:33:34 PM

0/0

I'm trying to find a way to implement this menu in ASP.NET 2.0 according to "best practices". Basically it is a vertical non-folding "static" menu. What makes it a bit special is that some of the items contain text that is generated by a DB query.

Section 1
> State 1 (<output from DB query>)
> State 2 (<output from DB query>)
> Static entry

Section 2
> State 3 (<output from DB query>)

and so on...

Of course, I could hard-code the HTML code and then inject the DB output where apropriate, but I would like to do it in a more sophisticated way. I've been struggling with asp:menu and web.sitemap, but I failed to produce correct markup of the sections. Neither was I able to find a way to inject the DB output.

I've also fiddled a bit with css menu adapters (http://www.asp.net/cssadapters/) but then I was back on doing too much HTML myself.

What's your opinions on this?

Regards,
Johan

 


If this post was useful to you, please mark it as answer. Thank you!
aspdotnetv2
Asp.Net User
Re: Need advice on how to implement menu6/16/2006 2:03:40 PM

0/0

I think the best way is to create a custom sitemap provider. In your case I suggest you override XmlSiteMapProvider to inject DB Menus (overriding BuildSiteMap function) and then use the Menu control to show them.  Adapters are generally used to render HTML for a browser.

 

 

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
MegaFox: 1002 Things You Wanted to Know about Extending Visual FoxPro Authors: Marcia Akins, Andy Kramek, Rick Schummer, Pages: 550, Published: 2002
SAMS Teach Yourself Windows XP in 21 Days Authors: John Mueller, Pages: 768, Published: 2001
Food at Work: Workplace Solutions for Malnutrition, Obesity and Chronic Diseases Authors: Christopher Wanjek, Pages: 448, Published: 2005
Linux Server Hacks: Tips and Tools for Connecting, Monitoring, and Troubleshooting Authors: William Von Hagen, Brian K. Jones, Pages: 456, Published: 2005
Software Quality-ECSQ 2002: Quality Connection--7th European Conference, Helsinki, Finland, June 9-13, 2002 : Proceedings Authors: Jyrki Kontio, Reidar Conradi, Pages: 361, Published: 2002
Switch on to Mathematics: Activities in Word, Powerpoint & Excel : Middle Primary Authors: Mark Hennessy, Matthew Hennessy, Pages: 72, Published: 2006
PowerPoint 2003 Just the Steps For Dummies Authors: Barbara Obermeier, Ted Padova, Pages: 204, Published: 2006
Mastering Microsoft Windows Vista Home: Premium and Basic Authors: Guy Hart-Davis, Pages: 1042, Published: 2007
The Human-Computer Interaction Handbook: Fundamentals, Evolving Technologies, and Emerging Applications Authors: Andrew Sears, Julie A. Jacko, Pages: 1358, Published: 2008
Visual Studio .NET Tips and Tricks: Tips and Tricks Authors: Minh Nguyen, Pages: 122, Published: 2004

Web:
C++ Q&A: Menu Tips in an MFC App To implement menu tips in your app, just add a CMenuTipManager to your main window .... menu window // save hwnd return FALSE; // no need to look further ...
Re: [isabelle] Trying to implement conditional skip-proofs, need ... Apr 9, 2008 ... or select myimage from the Proof General menu. ... [isabelle] Trying to implement conditional skip-proofs, need advice. ...
Web Development Tips, Tricks & Trivia: HOW TO implement a cross ... May 28, 2006 ... HOW TO implement a cross browser context menu with Javascript. If your custom web application requires a cross browser context menu, ...
CodeProject: Tips in Writing Namespace Extensions (II) - Implement ... Sometimes, we need to refresh all the other shell views except the current one. ..... You can implement a context menu handler in your NSE, and add this to ...
Implement a Button with a Drop Down Menu in Delphi Here's how to implement such user interface in Delphi. ... the right button over the component, we need to suppress the display of the frame's context menu. ...
Advice on best practice to implement web pages - ASP.NET Forums Re: Advice on best practice to implement web pages ... so each task on the menu is going to be its own user control? and then depending on the task, ...
Java Tips - How to implement different style options in your ... Java Tips -- Java, Java, and more Java, How to implement different style options in ... This tip includes a JTextPane with a menu for Style manipulation. ...
Healthy Eating Tips and Recipes Get a free issue of the Healthy Menu Mailer as well as some healthy eating ... This is some hands-on advice that you can implement for yourself and your ...
Why implement System i security anyway? Security implemented at the menu level was very effective in limiting ... Tips Exchange is a forum for you to share technical advice and expertise with your ...
Shelley Powers: Implement a DHTML Mouseover Effect Using the DOM ... If you wanted to provide a help message for the menu item, you would need to include this message as a part of the image or use some other technique such as ...

Videos:
Website Checklist with Jill Whalen http://videos.webpronews.com Founder and CEO of High Rankings and Co-Founder of SEMNE, Jill Whalen talks with WebProNews about site navigation and me...




Search This Site:










size of content place holder

menu control help needed

.net 2.0 menu questions

master page and firefox

menuitem enabled property not functioning properly in asp .net 2.0 (vwde)

2.0 menu control skin / shadows

understanding - web.sitemap

is there a way to make the wizard control databound?

set focus in an object with master pages and ajax control toolkit

problems navigating links from menu to contentplaceholder

master page file and gridview datakeys

access dropdown list in nested masterpage

reference master page from a helper class

menu with sitemap without parent node

unable to cast object of type 'asp.masterpage_master' to type 'asp.masterpage_master'.

tab menu in master pages

menu skin problem

set menuitem.selected if child menuitem is selected.

difference between user control and master page ?

disabling master pages on page level

skin detailsview templatefield

how masterpage run ?

referencing controls on nested master pages

delete node from sitemap

problem with sitemap and securitytrimmingenabled

master pages, content pages, images, javascript rollovers

dynamically change skin of user control

basic directory question

styling hierarchical menus using treeview

selectednodechanged event not fired for treeview

  Privacy | Contact Us
All Times Are GMT