G
Guest
Hi folks,
In a webform I have a dropdownlist control using ASP.NET. I have bound data
to the control and have populated it with names.
SELECT * FROM USERS WHERE ID=?
.... USERS is the table, ID is the primary key and NAME is a text string.
When I select a NAME from the dropdownlist control, I want to pass the
respective ID to a function that is structured as follows:
QueryMethodByID (ByVal id As Integer) As IDataReader
Essentially the pseudo code would be as follows:
If NAME = "A NAME FROM THE LIST" THEN
ID = 7 // or any number that pertains to a respective name
end if
In a webform I have a dropdownlist control using ASP.NET. I have bound data
to the control and have populated it with names.
SELECT * FROM USERS WHERE ID=?
.... USERS is the table, ID is the primary key and NAME is a text string.
When I select a NAME from the dropdownlist control, I want to pass the
respective ID to a function that is structured as follows:
QueryMethodByID (ByVal id As Integer) As IDataReader
Essentially the pseudo code would be as follows:
If NAME = "A NAME FROM THE LIST" THEN
ID = 7 // or any number that pertains to a respective name
end if