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)
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)
Hmm probably should have said Form Select Box as my original was obviously ambiguous.
TheNige
7:50 pm on Mar 16, 2004 (gmt 0)
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.