Link to home
Start Free TrialLog in
Avatar of prowebinteractiveinc
prowebinteractiveinc

asked on

.NET combobox question

I was wondering with a combobox if you have a value and a display like in HTML

<select>
<option value="databaseFirstNameField">First Name</option>
<option value="databaseLastNameField">Last Name</option>
<option value="databaseTelephoneNameField">Telephone</option>
<option value="databaseEmailNameField">Email</option>
</select>

Open in new window


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
Avatar of kaufmed
kaufmed
Flag of United States of America image

Yes, the ComboBox has the SelectedText and the SelectedValue properties which will give you the respective data.
Avatar of prowebinteractiveinc
prowebinteractiveinc

ASKER

ok but how do I define that in the combobox ?
ASKER CERTIFIED SOLUTION
Avatar of Sara bhai
Sara bhai
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I dont think im being clear on what I need

How do I populate the combobox with Values and displays ?