Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 9th, 2006, 05:08 AM
Registered User
 
Join Date: Mar 2006
Location: Auckland, AK, New Zealand.
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




Reply With Quote
  #2 (permalink)  
Old September 10th, 2006, 05:56 PM
Registered User
 
Join Date: Mar 2006
Location: Auckland, AK, New Zealand.
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!!??

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:15 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.