I have an ASP.NET Web Forms site and I am attempting to use a jQuery dialog to show values from a database for categories / names after a button click on the main page.
Running the page inside the jQuery Dialog directly in a browser works flawlessly, but running it inside the jQuery dialog causes this error on the first run.
Uncaught Error: Sys.WebForms.PageRequestManagerServerErrorException: The state information is invalid for this page and might be corrupted.
If I close the Dialog and open it again after this error, it works perfectly?! I have read all I can find on ViewState and UpdatePanel and none of the normally suggested solutions work for me. I suspect the issue is that my jQuery Dialog is loading a separate aspx page and this is being loaded on top of the main page. Because of this my View State is invalid for the main page, not the page in the jQuery Dialog, on postback.
The error occurs, on the first load, with any modification of the page, i.e set a label text, show / hide label, choose a TreeView Node, etc. Basically any event that would modify the appearance of the Page.
Also, I am loading the dialog page into a dialog div on the main page so the main page has those controls at that point...