Hi,
I had given sql connection in web.config file i should have to bind a table to dropdown list using web.config file only .Please tell the code for it.
Thanks.
How to Bind Table to DropDown List using sql server 2008 ?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
SenthilkumarRank #387 · 6.5K pointsPosted Mar 30, 2012, 5:57 AM EDT
Add the connection string in the web.config file.
Place the drop down control in your web page.
Then add this code in your web.config file to fill the drop down list.
Note: Make sure you have included System.Data and System.Data.SqlClient namespace.