this is my code -
SqlCmd = New SqlCommand("sp_load_names", SqlCnn)
SqlCmd.CommandType = CommandType.StoredProcedure
SqlDR = SqlCmd.ExecuteReader()
While SqlDR.Read
ads_list.Items.Add(New ListItem(SqlDR(1) & ""))
End While
SqlDR.Close()
this shall populate the dropdownlist data, but in the value i need it to pick up the "ID" field from the stored proc. the stored proc sends two parameters, ID and Name. so i populate name, but how do i populate the id in value like this - Mark Sam Dennis
i hope im not confusing anyone