Problem in Displaying preselected data in dropdown
Hi
All,
I am having problem in displaying preselected value from database in dropdownlist. I have 2 tables User(ID,Name)and Country(ID,Name).Am inserting Countryname from a Countrydropdwnlist for an UserId. Now i need to display the particular Country of the user get selected in the dropdwnlist.(i.e the dropdwnlist will contain all the Countryname and the particular counrty of that user should be selected by default).Am only getting the 0 index Countryname selected by default.How can i do This??
|