Click here to Skip to main content
15,889,865 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After ajax call in my page I am getting this error

"The state information is invalid for this page and might be corrupted"

I set Response.Cache.SetNoServerCaching(); on load event but still it not work.
Also I change page directive to --
HTML
EnableViewStateMac="false" 
EnableSessionState="True" 
EnableEventValidation="false" 
ValidateRequest="false" 
ViewStateEncryptionMode="Never"


but it not working.

if any solution plz help me.
thanks in advance.
Posted
Updated 3-Aug-11 20:09pm
v2
Comments
sudeshchandram 4-Aug-11 2:27am    
Could you please tell how you are making ajax call? I mean code...
Pravinjas 4-Aug-11 2:33am    
$("#<%=txtProductCode.ClientID %>").keyup(function () {
var pcode = document.getElementById('<%=txtProductCode.ClientID %>').value;
$("#message").load('checkproductcode.aspx?str=' + pcode);


});
Pravinjas 4-Aug-11 2:33am    
Im using jquery ajax for server side validation
sudeshchandram 4-Aug-11 3:02am    
Could you try below and see whether load is happening..???

$("#<%=txtProductCode.ClientID %>").keyup(function () {
var pcode = document.getElementById('<%=txtProductCode.ClientID %>').value; $("#message").load('checkproductcode.aspx?str=' + pcode, function() {
alert('Load was performed.');
});

});
Pravinjas 4-Aug-11 3:19am    
finally i got solution.instead of .aspx i used .ashx.
.aspx file was loading but problem is duplication of view-state because i was calling one page into another page. now i use .ashx file.now it is working.

Thanks for ur suggestion.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900