Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I developed one page in asp.net MVC by using jquery which allows to create roles and delete roles. In mozilla this page is getting refresh and loading new data to my jquery grid after adding or deleting roles. But this is not working in IE. I tried clearing the IE cache and several ways. But i am not getting. Please guys help me to get out of this problem. Is there any configuration setting for IE ..?
Posted

1 solution

Read the following article:
3 mistakes to avoid when using jQuery with ASP.NET AJAX

Make sure that you are using jQuery latest version and if you are using AJAX requests, browsers might cache your GET requests. use cache: false parameter to your AJAX requests to resolve your issue.
JavaScript
$.ajax({
    url: '/foo',
    type: 'GET',
    cache: false,
    success: function(result) {
     //your code here
    }
});
 
Share this answer
 
v2
Comments
ganesh_kanc 15-Dec-11 2:13am    
Hey thank you very much .. yar.. I did as you said it works now.
Monjurul Habib 15-Dec-11 2:19am    
great, congrats
ganesh_kanc 15-Dec-11 2:14am    
But I want to know what happens when we give cache:false parameter
Monjurul Habib 15-Dec-11 2:22am    
Default: true, false for dataType 'script' and 'jsonp'
If set to false, it will force requested pages not to be cached by the browser. Setting cache to false also appends a query string parameter, "_=[TIMESTAMP]", to the URL.
ganesh_kanc 15-Dec-11 2:32am    
Thank you for the support. Another doubt. Can i pass the parameter for the ajax posting also. If i use ,will i get any problems

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