Please..
Sorry my poor English...
Exception in postback if web page include WebDialogWindow..
Error Message : Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request
I'm using ContentUrl in WebDialog.. html content from my extern url is render in self page, after load completed, any postback is fire exception Thanks..
Thanks,
I will be test your code in home.. but.. my problems is not opening dialog, it work fine. My problems is take postback in page. In your code you don't include any postback. I will be try add in your code <asp:button.. runat="server" OnClick="Testing_postBack" /> and see if postback haave not problem.
Nevertheles thanks for your intentions of help me.
I have taken your code and pasted it into a new website, and it works !!!
All I added was a button and some javascript to display the webdialog.
I have attached a zip file with the files :-
Default.aspx Default.aspx.vb web.config
You can paste these into a new web site, and you will have to import the style 'Office2007Blue'
If this does not run on your machine, then I think you need to look at the versions of the Infragistics controls you are running.
On my machine, I have VS2008 Team Edition, Infragistics 2008 V1
Let me know if this works.
Okay, Trying to find the problem I have completely removed the contents of WebDialogWindows.
<ig:WebDialogWindow ID="webVehicleDialog" runat="server" StyleSetName="Office2007Blue" Height="470px" InitialLocation="Centered" Modal="True" Width="820px" WindowState="Hidden" Moveable="False"><ContentPane ScrollBars="Hidden"><Template>Testing control....</Template></ContentPane><Header CaptionText="Policy Vehicles "></Header></ig:WebDialogWindow>
The problem persists. This means that the content has nothing to do with us what is going on. If remove WebDialogWindows from page, everything runs correctly.
Continue test, i remove AjaxControlToolkit <cc1:ConfirmButtonExtender .... </cc1:ConfirmButtonExtender> the problem persist...i remove <igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server" Width="100%" BorderStyle="None"> used in UltraWebGrid.. the problem persist.. i remove UltraWebGrid ... the problem persist.. The rest of the code is HTML, and the 2 button, one open dialog using javascript and other that makes the postback.
Please.. any help?
Thanks samsonca..
I don´t know what happen in this form.. I use master page, and use UltraWebGrid control too, may be my user control include code that throw exception.. before include infragistics controls i used http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Animation/Animation.aspx ajax control and we can´t problems.
if i change user control and use contentUrl any postback throw exception too.
thanks by your time.
I have never tried placing a User Control inside a dialog window, and your code gives no idea about the User control functionality.
Perhaps someone from Infragistics could comment, or you may wish to report this a a possible error. (Ask for Help option in the Get Help menu on the main Infragistics page).