I'd be interested in developing an AJAX menu control. Have you seen any good examples with source code?
Main Topics
Browse All TopicsDoes anyone know if the ASP.net Menu Control can be accessed through Javascript? I need to remove and add menu items from the client without a postback.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: GeoffSuttonPosted on 2008-12-21 at 17:31:28ID: 23224010
Your best bet would be to use the built in ajax controls in Visual Studio 2005 and 2008 to create an asynchronous postback and add the controls programatically. The reason for this is so that the control and the viewstate have all the information that they need to function. Also, this will result in a faster loading page for you (no extensive javascript) and less irritation making sure that all the different browsers are accounted for. Really, there is very little need now to write extensive client side code as it can be done almost as quickly on the server and far more effectively.
If you decide to pursue using javascript, the best thing I can recommend would be to view the source of the page to get the schema being produced for the menu control (this may change depending on browser type) and then write appropriate javascript to modify the DOM to add Buttons, Anchor Links or Text Elements as you see fit in the menu.
Good luck on this,
Geoff