Forum Moderators: open

Message Too Old, No Replies

Drop Down From Database in .Net

Can this be done simply?

         

IanTurner

3:12 pm on Mar 15, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



We are looking to generate drop down menus from datbase queries in ASP.Net, this doesn't seem the most obvious thing to do is there a neat solution to the problem which doesnt take a dozen lines of code.

Xoc

4:37 pm on Mar 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Dozens of lines of code in JavaScript or dozens of lines of code for you to write? Drop down menus have to be constructed in JavaScript on the client side, and requires much more than dozens of lines of code. However, there are some pre-written ones you can download and use. Look here on asp.net [asp.net] for an entire section on various kinds of menus.

Something to consider, though: Every web drop down menu system I've ever seen has hurt usability. So consider carefully before going that route.

IanTurner

5:02 pm on Mar 16, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hmm probably should have said Form Select Box as my original was obviously ambiguous.

TheNige

7:50 pm on Mar 16, 2004 (gmt 0)

10+ Year Member



Form select boxes are easy. As mentioned there are tons of tutorials on Microsofts ASP.Net site. Look for how to Databind your search results to the control and ASP.Net will take care of building the drop down list. Most likely can do it in 5 lines or less.