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 July 28th, 2006, 10:35 PM
Registered User
 
Join Date: Jul 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Probs w/ AutoPostBack and DDL in Wizard Control

Hi everyone,

I'm reasonably new to ASP.Net 2, and I love the Wizard control, but I've come across an enfuriating problem, which was not a problem at all when I used the Multiview control.

I have two dropdownlists; the top one, when a selection is made, filters the list items of the second dropdownlist. Now this worked absolutely fine in MultiView, but when I ran the same code in a Wizard, the lists do not reflect the new SelectedIndex (i.e. the first one does not show the selection I just made and the bottom list is not filtered) and the form parameters do not seem to have been sent via the AutoPostBack.

I've searched the internet high and low for a solution to this. Is it a bug in the Wizard control? Can anyone help as I just don't seem to be able to find a solution to this problem. Any code would help too.

I am using ASP.Net2, SQL Server 2005 Express, and Visual Web Developer 2005 Express.

------
Graham

 
Old July 29th, 2006, 01:48 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

send your code and I'll take a look at it.

Aaron

 
Old August 1st, 2006, 02:37 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Depending on how you are filtering, you may need to use the UniqueID property of the control. Remember, you are essentially dealing with a control within a control and in some cases, especially when filtering, I've noticed you have to specify the UniqueID explicitly. For a wizard control, it will look something like Wizard1$DropDownList1. If you're not sure you can output the unique id to a label.

        Label1.Text = DropDownList1.UniqueID







Similar Threads
Thread Thread Starter Forum Replies Last Post
how can selectedvalue of DDL make other DDL visibl hertendreef ASP.NET 2.0 Professional 4 May 20th, 2008 04:38 PM
wizard control MunishBhatia ASP.NET 2.0 Basics 0 April 15th, 2008 12:35 AM
wizard control Bill Crawley ASP.NET 2.0 Professional 0 July 12th, 2007 09:55 AM
Building composite Control with Image + DDL mehdi_tn ASP.NET 1.x and 2.0 Application Design 2 October 3rd, 2006 07:22 AM
Building composite Control with Image + DDL mehdi_tn ASP.NET 2.0 Professional 1 April 12th, 2006 10:48 PM





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