Home arrow ASP.NET arrow Create a Simple, Cross-Browser, Dropdown Menu User Control with C#
ASP.NET

Create a Simple, Cross-Browser, Dropdown Menu User Control with C#


In this article, Nick Howard will demonstrate the use of an ASP.NET user control coded in C#. In order to accomplish this task, a variety of technologies will be utilized including XML, XSL/XSLT, CSS and JavaScript.

Author Info:
By: Wrox Team
Rating: 4 stars4 stars4 stars4 stars4 stars / 158
November 05, 2002
TABLE OF CONTENTS:
  1. · Create a Simple, Cross-Browser, Dropdown Menu User Control with C#
  2. · What are ASP.NET User Controls?
  3. · Control Design
  4. · Using the Control
  5. · Conclusion

print this article
SEARCH DEVARTICLES

Create a Simple, Cross-Browser, Dropdown Menu User Control with C#
(Page 1 of 5 )

Every web site or intranet application needs some form of navigation device. Often you will see static links to subordinate pages that need to be included on each and every page of a site. When you are dealing with a site of modest proportion, this method of inclusion may be adequate. If a menu change needs to be made, only a handful of pages need to be edited and updated. When your site starts to become a little more unwieldy, as your page count increases or your navigation becomes more complex, this method of upkeep starts to become a more difficult undertaking.

Even when I was developing DOS-based applications, the first course of action included the development of a reusable menu control that could be easily ported between the different apps we were developing. (This included peeking into screen memory, saving the current contents and swapping in the menu text.) Now with the Internet, the need is the same, if not greater, due to the dynamic nature of the web itself. Therefore, a dynamic, flexible, extensible and easy-to-use method of displaying menu text is a bare necessity. In this article, you will see an example of the design, development and deployment of a horizontal dropdown menu user control.

System Requirements
The menu control was developed using the .NET Framework version 1.0.3705 (version 1.0 is available at http://www.microsoft.com/downloads/details.aspx?familyid=d7158dee-a83f-4e21-b05a-009d06457787), a text editor (my favorite is TextPad), Microsoft Internet Explorer Version 6.0 (although the menu is compatible with IE 4.0 and above), Netscape Version 4.72 (layers) and Netscape 6.2.

You should be familiar with ASP.NET, C# or VB.NET (see code download for a VB.NET version), XML, XSL/XSLT, CSS and JavaScript. If you are not comfortable with any of these technologies, this example should help you get started (it's got a little bit of everything).
blog comments powered by Disqus
ASP.NET ARTICLES

- How Caching Means More Ca-ching, Part 2
- How Caching Means More Ca-ching, Part 1
- Reading a Delimited File Using ASP.Net and V...
- What is .Net and Where is ASP.NET?
- An Object Driven Interface with .Net
- Create Your Own Guestbook In ASP.NET
- HTTP File Download Without User Interaction ...
- Dynamically Using Methods in ASP.NET
- Changing the Page Size Interactively in a Da...
- XML Serialization in ASP.NET
- Using Objects in ASP.NET: Part 1/2
- IE Web Controls in VB.NET
- Class Frameworks in VB .NET
- Cryptographic Objects in C#: Part 1
- Sample Chapter: Pure ASP.Net

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials