asp.net mvc项目无法在IE中像mozilla一样工作 [英] asp.net mvc project is not working in IE like mozilla

查看:69
本文介绍了asp.net mvc项目无法在IE中像mozilla一样工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用允许创建角色和删除角色的jquery在asp.net MVC中开发了一页.在mozilla中,添加或删除角色后,此页面正在刷新并将新数据加载到我的jquery网格中.但这在IE中不起作用.我尝试清除IE缓存和几种方法.但是我没有.请大家帮我摆脱这个问题. IE ..

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 ..?

推荐答案

是否有任何配置设置?阅读以下文章:
在将jQuery与ASP结合使用时要避免的3个错误. NET AJAX

确保使用的是最新版本的jQuery ,如果使用的是AJAX requests,则浏览器可能cache 您的GET requests.在AJAX requests上使用cache: false parameter解决您的问题.
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.


.ajax({ 网址:' /foo', 类型:' GET', 缓存: false , 成功:功能(结果){ // 此处的代码 } });
.ajax({ url: '/foo', type: 'GET', cache: false, success: function(result) { //your code here } });


这篇关于asp.net mvc项目无法在IE中像mozilla一样工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆