G
Guest
Hello,
I have a table with brand_code and brand_name, 2 columns. brand_code is PK.
I want to retrieve these values from the database and fill to select control.
I tried using datareader.
dr=cmd.exectereader()
while dr.read()
selBrand.attributes.add(dr("brand_code"),dr("brand_name"))
end while
Its storing value and text same with brand_name
I want to store brand_code in value and brand_name visible to user in the
selected control. Coz only brand_code is passed for internal database
transactions.
How do i retrieve the selected brand_code?
I have a table with brand_code and brand_name, 2 columns. brand_code is PK.
I want to retrieve these values from the database and fill to select control.
I tried using datareader.
dr=cmd.exectereader()
while dr.read()
selBrand.attributes.add(dr("brand_code"),dr("brand_name"))
end while
Its storing value and text same with brand_name
I want to store brand_code in value and brand_name visible to user in the
selected control. Coz only brand_code is passed for internal database
transactions.
How do i retrieve the selected brand_code?