不安全:javascript:WebForm_DoPostBackWithOptions(新的WebForm_PostBackOptions(“ ctl00 $ ContentPlaceHolder1 $ btnSaveBack”,“”,true,“”,“”,false,true))

时间:2018-07-28 02:51:41

标签: asp.net asp.net-mvc asp.net-mvc-4

我为MVC / WebForm混合应用程序更新了20个NuGet软件包。单击Button1时,在IE 11(边缘)地址栏中出现以下错误,但是单击Button2时没有出现错误。我什至安装了App_BrowsersUpdate,但问题仍然存在。这两个按钮都执行一些javascript,以验证表单值并在单击时清除表单的脏标志。有谁知道哪个软件包更新引起了此问题?谢谢。

IE地址栏中的错误:

unsafe:javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$btnSaveBack", "", true, "", "", false, true))

按钮1:

<asp:LinkButton ID="btnSaveBack" runat="server" CssClass="btn btn-info spinable" OnClick="SaveAndReturn" CausesValidation="true" Text="SAVE &amp; <br/>Return to List" CommandArgument="SaveAndReturn">
</asp:LinkButton>

按钮2:

<div style="padding: 0 35%" ng-show="myCtrl.showButton2">
  <asp:LinkButton ID="someId" runat="server" CssClass="btn btn-primary spinable" OnClick="SaveAndStay" CausesValidation="true" Text="Post Form Values to Server" TabIndex="-1" CommandArgument="someStringHere" />
</div>

在表单上清除脏标志:

<%--clear form dirty flag function variable--%>
var clearDirty = function() {
  isDirty = false;
  $("#<%:btnUndo.ClientID%>").hide();
}

Packages.config

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="AjaxMin" version="5.14.5506.26202" targetFramework="net452" />
  <package id="angularjs" version="1.7.2" targetFramework="net461" />
  <package id="AngularJS.Core" version="1.7.2" targetFramework="net461" />
  <package id="AngularJS.Resource" version="1.7.2" targetFramework="net461" />
  <package id="Antlr" version="3.5.0.2" targetFramework="net452" />
  <package id="App_BrowsersUpdate" version="1.0" targetFramework="net461" />
  <package id="bootstrap" version="4.1.3" targetFramework="net461" />
  <package id="colorbox" version="1.4.29" targetFramework="net461" />
  <package id="elmah" version="1.2.2" targetFramework="net451" />
  <package id="elmah.corelibrary" version="1.2.2" targetFramework="net451" />
  <package id="EntityFramework" version="6.2.0" targetFramework="net461" />
  <package id="FontAwesome" version="4.7.0" targetFramework="net461" />
  <package id="Google.Protobuf" version="3.6.0" targetFramework="net461" />
  <package id="iTextSharp" version="5.5.13" targetFramework="net461" />
  <package id="jQuery" version="3.3.1" targetFramework="net461" />
  <package id="jquery.datatables" version="1.10.15" targetFramework="net461" />
  <package id="jQuery.UI.Combined" version="1.12.1" targetFramework="net461" />
  <package id="jQuery.Validation" version="1.17.0" targetFramework="net461" />
  <package id="json2" version="1.0.2" targetFramework="net461" />
  <package id="Microsoft.AspNet.Mvc" version="5.2.6" targetFramework="net461" />
  <package id="Microsoft.AspNet.Razor" version="3.2.6" targetFramework="net461" />
  <package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net451" />
  <package id="Microsoft.AspNet.WebApi" version="5.2.6" targetFramework="net461" />
  <package id="Microsoft.AspNet.WebApi.Client" version="5.2.6" targetFramework="net461" />
  <package id="Microsoft.AspNet.WebApi.Core" version="5.2.6" targetFramework="net461" />
  <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.6" targetFramework="net461" />
  <package id="Microsoft.AspNet.WebPages" version="3.2.6" targetFramework="net461" />
  <package id="Microsoft.CSharp" version="4.5.0" targetFramework="net461" />
  <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net451" />
  <package id="Modernizr" version="2.8.3" targetFramework="net452" />
  <package id="MySql.Data" version="8.0.11" targetFramework="net461" />
  <package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
  <package id="NwicFramework.NWICModels" version="1.0.0" targetFramework="net461" />
  <package id="NwicFramework.VhaHelperLib" version="1.0.0" targetFramework="net461" />
  <package id="popper.js" version="1.14.3" targetFramework="net461" />
  <package id="SlowCheetah" version="2.5.48" targetFramework="net461" />
  <package id="VisualStudioGitIgnore" version="1.3.0.0" targetFramework="net45" />
  <package id="WebGrease" version="1.6.0" targetFramework="net461" />
</packages>

0 个答案:

没有答案