C# 注销代码不适用于Jquery验证

C# 注销代码不适用于Jquery验证,c#,jquery,css,asp.net,C#,Jquery,Css,Asp.net,注销代码不适用于具有Jquery验证的WebForms。对于没有任何验证的其他表单,同样的注销代码也可以正常工作。注销代码为 Response.Buffer = true; Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheContr

注销代码不适用于具有Jquery验证的WebForms。对于没有任何验证的其他表单,同样的注销代码也可以正常工作。注销代码为

                Response.Buffer = true;
                Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
                Response.Expires = -1500;
                Response.CacheControl = "no-cache";
                Session.Clear(); //clear session
                Session.Abandon();//Abandon session
                Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
                Response.Cache.SetCacheability(HttpCacheability.NoCache);
                Response.Cache.SetNoStore();
                Response.Redirect("~/Index.aspx");
和Jquery验证代码

$(function () {
        $("#form1").validationEngine('attach', { promptPosition: "topRight" });

    });
添加了这些链接

 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
    <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="http://cdn.ucb.org.br/Scripts/formValidator/js/languages/jquery.validationEngine-en.js"
        charset="utf-8"></script>
    <script type="text/javascript" src="http://cdn.ucb.org.br/Scripts/formValidator/js/jquery.validationEngine.js"
        charset="utf-8"></script> 
在这些web表单中也使用了一些CSS代码


有人能帮我吗?

通过在每个web表单页面加载事件中使用此代码来解决

            Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
            Response.Cache.SetCacheability(HttpCacheability.NoCache);
            Response.Cache.SetNoStore();