Wrox Programmer Forums
|
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 May 30th, 2006, 08:29 AM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 173
Thanks: 0
Thanked 2 Times in 1 Post
Default Databinding 3 Dropdownlists

Oh the logic hurts!

Hi all

I am trying to populate 3 dropdown lists in turn (1 after the other) but can only get to populating dropdown1 and dropdown2.

Dropdown1's selectedvalue is used in Dropdown2's datasource and then Dopdown2's selectedvalue is used in Dropdown3's datasource.

I am trying to use the autopostback on both dropdown1 and dropdown2 for user convenience. The problem is that every time dropdown2's autopostback is fired dropdown2 is reset because of the value in dropdown1 so dropdown3 never gets a look in at the moment.

Can anyone guide me in the right direction for a solution?

Many thanks

Rit
__________________
Rit
www.designandonline.co.uk
INSPIRE | CREATE | DELIVER
 
Old May 30th, 2006, 10:47 AM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 173
Thanks: 0
Thanked 2 Times in 1 Post
Default

Actually there was nothing wrong with my code. It was to do with the stored procedure not being correct, causing it it stop populating the dropdown list.

Sorry!

Rit





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdownlists in DetailsView irelandk BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 February 20th, 2007 10:13 AM
Callback in 3 DropDownLists Paula222 ASP.NET 2.0 Professional 3 December 13th, 2006 08:53 AM
dislaying dropdownlists dynamically ashokparchuri General .NET 1 March 1st, 2005 08:04 AM
DropDownLists venterjo General .NET 1 January 8th, 2005 09:10 AM





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