Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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
 
Old September 9th, 2006, 05:08 AM
Registered User
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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




 
Old September 10th, 2006, 05:56 PM
Registered User
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok...I've worked out that the 'Edit Templates' functionality is where I go to do this. I've got the form working in edit mode now as required.

I'm still not sure that if this is the correct method for providing drop down lists when editing data. If it was then I'm sure it would have been covered somewhere in either the Wrox ASP.NET 2.0 Professional or Beginner books. I'd be happy to be pointed to the appropriate chapter in either of these books....I'm sure its just a matter of me being blind to the obvious!!??






Similar Threads
Thread Thread Starter Forum Replies Last Post
asp databound dropdownlist kent ASP.NET 1.0 and 1.1 Basics 7 June 2nd, 2008 09:07 AM
dropdownlist in asp:gridview DagEJ ASP.NET 2.0 Basics 0 January 28th, 2007 12:48 PM
unable to get selected value form dropdownlist swati_joshi ASP.NET 1.0 and 1.1 Basics 3 March 31st, 2006 12:35 PM
DropDownList in ASP.NET shurabhavesh ASP.NET 1.0 and 1.1 Basics 3 June 1st, 2005 09:25 AM
ASP.NET Dropdownlist pvasudevan ASP.NET 1.0 and 1.1 Professional 4 August 31st, 2004 11:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.