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..
I have a web page with a dialog window which shows an external web site. I am getting no errors in postback.
Sending the code you are using may help to understand the problem you are experiencing.
Thanks by response.
WebDialigWidows Code: (I change ContentUrl by UserControl but the problem persist.
<ig:WebDialogWindow ID="webVehicleDialog" runat="server" StyleSetName="Office2007Blue" Height="470px" InitialLocation="Centered" Modal="True" Width="820px" WindowState="Hidden" Moveable="False"> <ContentPane ScrollBars="Hidden"> <Template> <uc1:policyVehicle ID="PolicyVehicle1" runat="server" /> </Template> </ContentPane> <Header CaptionText="Policy Vehicles "> </Header> </ig:WebDialogWindow>
ASP Button Code :
<asp:LinkButton ID="btnCopy" runat="server" CausesValidation="false" OnClick="btnCopy_Click">Copy</asp:LinkButton>
Postback button throw exception. If i remove WebDialogWindow control from page.. no errors in postback throw.
Thanks