Using asp:DropDownList in a Form
Ok, I am going to show my absoulte beginner status, but I'm frustrated. I have purchased The Wrox ASP.NET 2.0 Professional and Beginner and cannot find the answer to the most basic of tasks!
I am converting my ASP classic site. I have a simple page that has a single form with a number of text fields and a couple of selections lists. A button is clicked that calls another asp page to update the database (normal asp classic operations) - like I said the most simple of pages.
I have used the drag and drop facilities in Visual Studio to replicate the page in aspx - using a "FormView" - without the drop down lists. Just the data directly from the table - this works fine.
So, the next logical step is to add the drop down lists. Im sure its simple - but how do I do this?
- How do a get the drop down list inside the form
- How do I get it to default to the current value for the record
- How do I pass the value selected as the stored proc paramter
I would be gratefull if someone help out of even if they could point me to the correct page/chapter in the 2000 pages of Wrox ASP.NET 2.0 Professional and Beginner books that I have bought!
Thanking you in anticipation
Regards,
Roger
|