Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在IE7中返回Ajax时出错_C#_Asp.net_Asp.net Mvc - Fatal编程技术网

C# 在IE7中返回Ajax时出错

C# 在IE7中返回Ajax时出错,c#,asp.net,asp.net-mvc,C#,Asp.net,Asp.net Mvc,这是我的第一个问题。首先,为我的“不完美”英语道歉 我正在用AJAX开发一个ASP.NET MVC应用程序 我在视图中有以下代码: <% using(Html.BeginForm(null, "Home", FormMethod.Post, new{id="formcpf"})){ %> <p> <input name="tipo" type="radio" value="GeraCPF" /> CPF <input type="ra

这是我的第一个问题。首先,为我的“不完美”英语道歉

我正在用AJAX开发一个ASP.NET MVC应用程序

我在视图中有以下代码:

<% using(Html.BeginForm(null, "Home", FormMethod.Post, new{id="formcpf"})){ %>


<p>
   <input name="tipo" type="radio" value="GeraCPF" /> CPF 
    <input type="radio" name="tipo" value="GeraCNPJ" /> CNPJ
</p>


<p>
    <input type="submit" id="sbmt" value="Gerar" /> <br /><br />
    <span id="lblCPF" class="respostaBG"></span>
</p>
在Firefox和Chrome中工作正常,但在IE7中,有时会将值返回到标签中,有时则不会。我必须不断提交才能得到回报


有人可以帮忙吗?

您是否禁用了缓存

[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
此属性位于控制器类中,用于禁用缓存。因为我的应用程序中不需要缓存,所以我将其放在BaseController类中:

[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
public abstract class BaseController : Controller
{
下面是关于OutputCacheAttribute的详细描述:


检查禁用是否可以解决问题。

是否禁用了缓存

[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
此属性位于控制器类中,用于禁用缓存。因为我的应用程序中不需要缓存,所以我将其放在BaseController类中:

[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
public abstract class BaseController : Controller
{
下面是关于OutputCacheAttribute的详细描述:


检查禁用是否可以解决问题。

没有人可以帮助IE7。它坏得无法修复,没人能帮上忙。它坏得无法修理了。