prowebinteractiveinc
asked on
.NET combobox question
I was wondering with a combobox if you have a value and a display like in HTML
if not how would I do this in .NET its a small search engine for customers so first you select to search by Name, telephone, email etc etc and then enter the keyword
then my query would be something like:
SELECT * FROM customers WHERE COMBOBOX_VALUE = KEYWORD.TEXT
<select>
<option value="databaseFirstNameField">First Name</option>
<option value="databaseLastNameField">Last Name</option>
<option value="databaseTelephoneNameField">Telephone</option>
<option value="databaseEmailNameField">Email</option>
</select>
if not how would I do this in .NET its a small search engine for customers so first you select to search by Name, telephone, email etc etc and then enter the keyword
then my query would be something like:
SELECT * FROM customers WHERE COMBOBOX_VALUE = KEYWORD.TEXT
Yes, the ComboBox has the SelectedText and the SelectedValue properties which will give you the respective data.
ASKER
ok but how do I define that in the combobox ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I dont think im being clear on what I need
How do I populate the combobox with Values and displays ?
How do I populate the combobox with Values and displays ?