|
Rank: Newbie Groups: Member
Joined: 11/28/2007 Posts: 5
|
I am looking to implement a Multipage that switches its PageViews asynchronously when triggered by TabStrip tab clicks.
Is this feature supported natively, or do I need to put callback panels inside the PageViews?
I have experimented a little and gotten close, but no cigar, so I figured that I would post a message before spinning my wheels too much longer.
|
|
Rank: Newbie Groups: Member
Joined: 11/28/2007 Posts: 5
|
Looks like the 'Load On Demand' example may be my answer.
If not, i'll be back...
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Yes. That sample can get you started. However you may want to take a look of this topic regarding dynamic loading: http://essentialobjects.com/Forum/Default.aspx?g=posts&t=1179#5018The issue is a generic programming issue that is not specifically related to our product in any way. However our experience shows many users often run into this problem when trying to dynamically load control either with our PageView or CallbackPanel. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/28/2007 Posts: 5
|
Thank you for the warning!
Fortunately, I have done some dynamic user control loading and have written server controls, so I am familiar with some of the challenges around connecting events back to server controls.
Would I be correct in assuming that the CallbackPanel does an async HTTP post of the same page on a separate thread and then rewrites the contents of the CallbackPanel div into the DOM of the current page without touching the viewstate hidden field? (In other words viewstate changes made during the partial postback will not be reflected in the current page when I do a full postback of it)
Or have you guys managed to reflect server-side viewstate changes into the current page by decrypting and merging the changes into the viewstate hidden field? That would be an incredibly cool trick.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I believe it does update the view state. This is necessary to keep the HTML and view state in sync.
Thanks!
|
|