2
Answers

How do I populate a dropdownbox with a list of tables in a SQL database?

Photo of Kyle Brown

Kyle Brown

14y
2.6k
1
Hello all! This is my first post here so hopefully my question is detailed enough for you all to help me.  I believe my question is rather simple, however, after much searching I haven't found what I am looking for.  What I have is a form with textbox and a datagridview that displays the results entered intot he textbox.  What I want is to have a dropdownbox or combobox that my users can select which sql table to search and then enter what they are searching in the textbox.  Right now I have to go into the solution and change the sql command to search a specific table and that is a hassle.

Thanks in advance and if I left any details out please let me know without bashing me please.

Kyle

Answers (2)

0
Photo of Bikesh Srivastava
NA 19.8k 835.2k 8y
check object is undefined and then use substr.
0
You are passing an undefined value with jquery. You can simply test every value taken with the jquery selector (use console.log for that) and find the undefined one.