Generate Server Side Dropdown Menues

By Robbe D. Morris

Printer Friendly Version

Robbe Morris
Robbe & Melisa Morris
There a dozens of examples of how to create client side drop down menus in JavaScript.  At NullSkull.com, we really needed a simpler version that we could generate from server side ASP code.  The code example you see below could easily be modified to pull the menu items out of a database file or XML.  Since our values are fairly static, we hard coded the array values.
Feel free to take the code and modify it to fit your needs...
 


Robbe has been a Microsoft MVP in C# since 2004.  He is also the co-founder of NullSkull.com which provides .NET articles, book reviews, software reviews, and software download and purchase advice.