Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 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 Professional 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 April 20th, 2006, 11:49 AM
Authorized User
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Details View and Multiple DataSources

i'm having a problem maybe someone can help me

I have 2 datasources (1 for table Products and another for table Status)

When i create a DetailsView for Products Data Source, i get all the information, but on my Status field i get a TextBox, which i want to change to a DropDownList (to maintain Referential Integrity)

I was able to do that with a ItemTemplate, that has a DropDownList that has it's source as the Status Data Source.
Furthermore the SelectValue is Two Way Bounded with Status field of the Products Data Source

But when i try to update the Product Record, the changes i do in Status aren't recorded in the Database, i still get the same values

Any ideias ??

I think maybe the problem is in the fact that i'm using an ItemTemplate, so the Edit command isn't fetching the value from it, but this is a pretty standard thing to do in a wep page, so there should be some (easy) way to do this

Thank you

Old April 23rd, 2006, 01:41 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

If it is in the itemtemplate then you have to get the object from the itmetemplate. Try putting the dropdown in the edititemtemplate.

Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding the dropdownlist in the details view gopalawaghate ASP.NET 1.0 and 1.1 Professional 1 September 26th, 2008 02:23 AM
details view parameter inungh ASP.NET 2.0 Basics 0 July 5th, 2008 08:48 PM
view details radheshsharma1032 .NET Framework 2.0 0 January 12th, 2008 10:06 AM
populate details view or list view non empty rows iinfoque ASP.NET 2.0 Basics 0 March 11th, 2007 06:11 AM
Regarding Details View aekta ASP.NET 2.0 Professional 0 March 10th, 2007 11:46 PM

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