how can i connect drop down list with the data base in c#,can you give me the connectivity code? if the user choose some value fron drop down list in any form then it should be inserted in the database table.And what will be the data type of drop down
list in database as in coloumn. plz reply soon
how can i connect drop down list with the data base in c#,can you give me the connectivity code?plz reply soon
Hi,
It just needs a Datasource like SqlDataSource or ObjectDataSource——So you can just drag and drop the Dropdownlist onto the webform, and then click the small arrow on its right-up corner. And then choose a Datasource that you wanna connect with.
neetu kadyan
Member
1 Points
10 Posts
drop down list
Nov 18, 2012 03:05 PM|LINK
hi,
how can i connect drop down list with the data base in c#,can you give me the connectivity code? if the user choose some value fron drop down list in any form then it should be inserted in the database table.And what will be the data type of drop down list in database as in coloumn. plz reply soon
h.zahed@live...
Contributor
3171 Points
514 Posts
Re: drop down list
Nov 18, 2012 09:51 PM|LINK
Hi,
Check out the link below containing a full example:
http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/805dcdb1-9e5c-4ac8-8a95-27868cdfe692
MCP-MCTS-MCPD
Mark the post as Answer, if it helped you in solving your question.
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: drop down list
Nov 19, 2012 06:27 AM|LINK
Hi,
It just needs a Datasource like SqlDataSource or ObjectDataSource——So you can just drag and drop the Dropdownlist onto the webform, and then click the small arrow on its right-up corner. And then choose a Datasource that you wanna connect with.