I have a page that I am using with JQuery/Ajax (at this point, I'm not sure what is what) that works fine up until the point that I attempt to do a postback from a dropdown box. Then, it blows up on me with the following message:
In short, I have a main page (Welcome) that then calls three other pages (three different charts) to be run inside. In the Welcome page, I use the following to call them:
My dropdown looks like this:
I've disabled ViewState both at the page level and the control level in each of the three Chart pages (in each of the pages, there is only a single <div> tag with the codebehind that actually generates the relevant charts). My initial research indicates that the problem may have something to do with the AJAX opening of the three charts inside of the Welcome page but I don't see a way around it other than disabling the ViewState. Anyone else come across this before or have suggestions on how to resolve?
------------------------------------------------------------------------------------------------------------------------
Reason and free inquiry are the only effectual agents against error; they are the natural enemies of error and of error only.
Thomas Jefferson
Complete Error Text: System.Web.HttpException: The state information is invalid for this page and might be corrupted. ---> System.Web.UI.ViewStateException: Invalid viewstate.
In short, I have a main page (Welcome) that then calls three other pages (three different charts) to be run inside. In the Welcome page, I use the following to call them:
Code:
1. <script type="text/javascript">
2. function getQSVar() {
3. var url = window.location.href;
4. var params = url.split('?');
5. return params[1];
6. }
7.
8. $(document).ready(function() {
9. var myUrl = "?" + getQSVar();
10. $("#ctl00_body_divChart1").load("Controls\\ErrorTrendChart.aspx" + myUrl);
11. $("#ctl00_body_divChart2").load("Controls\\UploadSummaryChart.aspx" + myUrl);
12. $("#ctl00_body_divChart3").load("Controls\\PayerResponseChart.aspx" + myUrl);
13. });
14. </script>
My dropdown looks like this:
Code:
1. <asp:DropDownList ID="ddlPayer" Runat="server" AutoPostBack="true" Width="70%" EnableViewState="false"
2. style="font-family:Trebuchet MS, Arial, Helvetica, Sans-Serif; font-size: 8pt; font-weight: bold;"
3. onselectedindexchanged="ddlPayer_SelectedIndexChanged"></asp:DropDownList>
I've disabled ViewState both at the page level and the control level in each of the three Chart pages (in each of the pages, there is only a single <div> tag with the codebehind that actually generates the relevant charts). My initial research indicates that the problem may have something to do with the AJAX opening of the three charts inside of the Welcome page but I don't see a way around it other than disabling the ViewState. Anyone else come across this before or have suggestions on how to resolve?
------------------------------------------------------------------------------------------------------------------------
Reason and free inquiry are the only effectual agents against error; they are the natural enemies of error and of error only.
Thomas Jefferson