SunQuest
 
       ASP.NET
  Home arrow ASP.NET arrow Create a Simple, Cross-Browser, Dropdown M...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Create a Simple, Cross-Browser, Dropdown Menu User Control with C#
By: Wrox Team
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 109
    2002-11-05

    Table of Contents:
  • Create a Simple, Cross-Browser, Dropdown Menu User Control with C#
  • What are ASP.NET User Controls?
  • Control Design
  • Using the Control
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    Iron Speed
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

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


    (Page 1 of 5 )

    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.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).

    More ASP.NET Articles
    More By Wrox Team


     

    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


    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway