You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Hi, I am wondering how to insert the value selected in a drop down list into a SQL server table. I have the sql data source working but I can't figure how to populate my data control with the value from the drop down. Thanks.
It all depends on your scenario. One option is to use the control as a parameter for an SqlDataSource or a LinqDataSource control.
Alternatively, you can do this with direct ADO.NET code. For an introduction to ADO.NET, check out Professional ASP.NET 3.5 by Wrox, or these quick start tutorials: http://quickstarts.asp.net/Quickstar...wcontents.aspx