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 August 8th, 2005, 02:30 AM
Registered User
 
Join Date: Jun 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Use Dropdownlist in DetailsView using asp.net/2.0

 Instead of textbox, i want to use a dropdownlist in one of the fields in my DetailsView. I am using DetailsView for data entry. And one of the fields shoud be in dropdownlist because the record shoud be come from another table.Please help me how to do this, or yet much better if you have some example..Links to other tutorial are also welcome.

To give you an insight this is what i want.

Location Table:

LocID LocName
1 1rst Floor
2 2nd Floor
3 3rd Loor

Item Table

ItemCode Description LocID
Item1 Chair 1
Item2 Table 2
Item3 Furniture 3

Now I will be using DetailsView to View this "Item Table" records. Also i will allow to edit, delete, and Insert new record.
Obiously what i want to happen is to limit entry for the locID of Item Table to have a referential integrity to Location Table. When i click for the "New" in DetailsView, all data input are in textbox. I want to have dropdownlist on LocID.

Thanks

 
Old July 1st, 2006, 01:43 AM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I find information here look this link and tell me, there is an example (with northwind DB)

http://blogs.msdn.com/robburke/archi...01/404727.aspx


good luck






Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing DropDownList in DetailsView firblazer ASP.NET 3.5 Basics 2 June 21st, 2008 06:48 AM
Cannot bind from DropDownList to DetailsView kiekar ASP.NET 2.0 Basics 0 February 19th, 2008 09:26 PM
Re-Binding A Dropdownlist In A DetailsView cyber0ne BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 March 26th, 2007 07:10 PM
Linking two Dropdownlist in DetailsView tna55 ASP.NET 2.0 Basics 0 February 12th, 2007 10:29 AM
dropdownlist value into detailsview: how? hertendreef ASP.NET 2.0 Professional 0 June 26th, 2006 01:54 AM





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