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.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Mar 30, 2012, 9:57 AM
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.