ASP.NET
  Home arrow ASP.NET arrow Page 5 - 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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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 / 112
    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
     
     
    ADVERTISEMENT


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


    (Page 5 of 5 )

    The goal was to create a simple user ASP.NET control that was not only immediately useful, but easily (and highly) extensible. We have used XML to store hierarchical data (in this case the menu structure), XSL/XSLT to transform our data into another form of XML - HTML, CSS to liven up the menu's display (with nice fonts and colors) and JavaScript to manipulate the menu control (in multiple browser types no less). And finally, we implemented its functionality in an ASP.NET user control.

    It may seem that by reaching the goal you have also come to the conclusion of your journey, however, it's really just the beginning. There are a number of things you can do in order to improve your user control and make it more robust. For instance, you could address code behind file compilation so only the .ascx and .dll files need to be deployed as part of a web application (most of us don't want our code out there for everyone to see). You could extend your control's public property list to include runtime setting of the CSS filename or set the name of a folder where the .xsl, .css and .js files used to create, display and manipulate our control are stored (so you can dynamically generate the <link /> and <script /> tags in the .ascx file). You could allow for more than one menu control per page (the XSL is limiting this as of now). You could change menu item text based on some run-time criteria. The list goes on and on. It's really up to you.

    Good Luck!
    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · Hi All,There is no link availble for downloading codebase for -Create a Simple,...
     

    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







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek