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..
Hi, :(
I don´t know what happen in my project.. finally, i have WebDialogWindow runing okay.
In my project i don´t use LoadControl or Controls.Add.. I'm using VS 2005 CLR 2.0.. if remove WebDialogWindow (in aspx page, not in master page) with AutoEventWireup in the Master page to true.. all worked .. if add WebDialogWindow in aspx page with AutoEventWireup in the Master page to true, throw exception.. if set AutoEventWireup in the Master page to false, all worked!! :(
thanks very much by your time samsonca..
Very hard to tell based on what I've seen in this forum thread. The error message you get is typically a generic ASP.NET error - if you are loading controls dynamically to placeholders (e.g. Page.LoadControl or PlaceHolder1.Controls.Add - and somehow they are loaded in different places after postback, this error occurs.
Maybe you can attach a small subset of your project reproducing the problem here or send it directly to Developer Support for additional information.
I added a simple Master page to my test project (Just a div at the top of the page), added a new page which inherits the Master page, and copied the code across. I had to change the javascript to open the dialog, adding 'ct100_ContentPlaceHolder1' in the $find to reference the dialogwindow.
I then ran the page with no AutoEventWireup in the Master page, and all worked. I then set AutoEventWireup in the Master page to true, and again all worked. I then tried every combination of AutoEventWireup in both the Master page and the web page, and again all worked !!!
On my own website I use Master pages and have dialogwindows being displayed correctly, some even having other Infragistics controls inside the dialogwindows.
Your problem seems to stem from using VS2005 and CRL 2.0, I am not sure why, but remember that AJAX is now built into VS2008.
Perhaps someone at IG could help ?
I have added a button to the page of code I sent you, and I can execute a postback with no errors !!
I have also added a button inside the dialogwindow, and this can postback with no errors !!
Check the version numbers of the IG controls.
Let me know your results.