Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a page in which i have to display all the data of user in textboxes so that he can edit it.i have some drop down controls too.i am using entity framework.i have a public fn of name binddata()which i call on page_load event
as i bind data
SQL
txtAddress2.Text = _tblzeumay.Tbl_Member.Tbl_Member_Address.address2;
 drpCountry.text= _tblzeumay.Tbl_Member.Tbl_Member_Address.Tbl_Country.country_name;

this code is showing correct data in textbox but dropdown is empty.
Posted

1 solution

Hi,
You will need bind the dropdown instead setting its text.
See below link:
entity-framework---fetching-and-populating-the-data-in-the-dropdown.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900