473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

CascadingDropDown Ajax.Net controls inside MultiView View subjcontrol

I have a page with a MultiView control and 6 Views. Each view has a
User control that contains various form controls (dropdowns, textboxes
and CascadingDropDown Ajax.Net controls).

When the page is loaded, I populate the various form controls with
data inside each of the 6 Views by accessing my exposed properties of
my User Control.

All the controls persist during postback, and any changes I make also
persist during postbacks, but the same cannot be said for the
CascadingDropDown control. It seems these controls do not interact
with the Viewstate such that when I change my active view (i.e.
Postback), the CDD controls on all the views revert to their default
values and the SelectedValues are gone.

I thought I had a working solution by saving the values to hidden
textbox controls and then setting the CDD SelectedValue to each
textbox control in the Page_Load of my User Control. The problem
with this is that any changes you make are lost when you change the
Active View.

Control hierarchy im using:

MasterPage
Edit page
MultiView
View
User Control
Textbox controls
...many other controls....
CascadingDropDown controls

So when the Edit Page loads, I bind the data to the exposed properties
of my User Control. All work great, and persist during postback,
except for CascasdingDropDown which loses its SelectedValue when the
Active View is changed (because that causes a post back).

Perhaps im going about this wrong? Should I use update panels and
skip the MultiView? Ive read about this being similar to Custom
controls and that I need to programmatically create my CDD controls in
Page_Init (or something like that).

Any help is greatly appreciated.
Mar 8 '08 #1
0 3101

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: coli | last post by:
When I place a FormView that is default to insert mode inside a MultiView's View Control, nothing get's displayed. It worked fine though when it's outside the MultiView.
0
by: MasterChief | last post by:
I have a multiview located inside of a formview under the edit item template. I set the Default mode to Edit mode. When I click Update it goes back to the edit view but the multiview doesn't show...
0
by: veerleverbr | last post by:
Hi, I want to create an asp.net page with a tabpage. On the tabpage I want to use the WebDateChooser and WebDataInput controls of Infragistics. These 2 controls use a mask to enter a date and...
8
by: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= | last post by:
I am new to AJAX. I am applying AJAX to a current web solution to get the "instant behaviour". On my main page I have two sets of criteria: Specific and Wide. Each set is placed in a View...
0
by: jrnail23 | last post by:
I have a user control which contains an UpdatePanel, which contains a MultiView inside, with a GridView in one of the views. In my GridView, I have a ButtonField which is supposed to trigger a...
0
by: glenh | last post by:
I have a data entry page with a number of controls in it some of which are DropDownLists controlled by the CascadingDropDown controls. All of these controls are contained in a MultiView control,...
4
by: DC | last post by:
Hi, the subject says it all. Since visible=false controls will still run though Page_Load, I was hoping that the MultiView would somehow manage to avoid a Page_Load of controls in its inactive...
0
by: ulrik | last post by:
I want to make a website consisting of several pages with no traditional postback at all. I have a header with a menu and a search box. When clicking a menu item or the search button the...
0
by: Tim | last post by:
Hi all, I'm using AJAX.NET and I've coded a page that changes the text of a button when a checkbox is clicked. The text changes from "Save" to "Keep Processing". The text change seems to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.