Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 February 5th, 2007, 05:49 PM
Registered User
Join Date: Feb 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Yes, that is what I am looking for, but I am doing everything in the code behind to stay dynamic.

Old February 5th, 2007, 06:00 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Sure, that's what I meant with "a database driven version of this menu".

However, Ajax seems to imply you go back to the server on every mouse over to get a new menu. IMO, that's a waste of time and server resources. Are your menus changing every mili second? I don't think so.

So, it's probably better to build up a menu at Page_load, send that to the browser an let CSS and a little bit of JavaScript / DHTML do it's work at the client.

You could use the <asp:Menu /> for this and bind it to a site map for example. For some ideas about this control, look here: http://quickstarts.asp.net/QuickStar...tion/menu.aspx

If you don't like the markup these controls create, take a look here as well: http://www.asp.net/CSSAdapters/Default.aspx


Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.

Similar Threads
Thread Thread Starter Forum Replies Last Post
onmouseover sstuber BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 April 29th, 2008 12:30 PM
how to access with code-behind a label embedded in hertendreef ASP.NET 2.0 Basics 3 March 12th, 2007 06:47 AM
onmouseover gilgalbiblewheel HTML Code Clinic 4 February 4th, 2005 08:05 AM
Apply VBA Code To Report Label If Possible Ben Horne Access VBA 3 February 18th, 2004 10:12 AM

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