PC Review


Reply
Thread Tools Rate Thread

CascadingDropDown Ajax.Net controls inside MultiView View subjcontrol

 
 
wfsmith@gmail.com
Guest
Posts: n/a
 
      8th Mar 2008
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX - cascadingdropdown =?Utf-8?B?R2FyeSBM?= Microsoft Dot NET 3 3rd Jul 2007 04:26 PM
Ajax Toolkit: CascadingDropDown - [Method Error 12030] mark4asp Microsoft ASP .NET 0 29th Mar 2007 11:03 AM
Switching View inside MultiView control Alexander van Doormalen Microsoft ASP .NET 2 23rd Jul 2006 08:52 AM
Multiview inside of FormView MasterChief Microsoft ASP .NET 0 24th Feb 2006 07:37 PM
Ajax and .net multiview control Mavenos Microsoft ASP .NET 1 2nd Feb 2006 06:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 AM.