Hello friends,
I have a drop down list with a listing of colleges with the following info.
example : Colleges_ID, CollegeName
Please see the code below that i am using currently.
DropDown_List.AppendDataBoundItems = True
Dim conn As SqlConnection = New SqlConnection(strConnString)
conn.Open()
Dim cmd As SqlCommand = New SqlCommand(Sql, conn)
Dim rdr As SqlDataReader = cmd.ExecuteReader
While rdr.Read
DropDown_List.Items.Add(rdr(1).ToString)
End While
The problem is that i need to get the unique college_Id (Primary Key) of the selected dropdown item from the drop down list e.g. my table has a
primary key = 1002
college name = Universal College
Once the user selects the college name Universal College i would like to get the primary ...
Go to the complete details ...