2

在 cshtml 中

<form action="/Sp/EditSp" method="post" onclick="Sys.Mvc.AsyncForm.handleClick(this, new Sys.UI.DomEvent(event));" onsubmit="Sys.Mvc.AsyncForm.handleSubmit(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, httpMethod: &#39;POST&#39;, updateTargetId: &#39;divDisplay&#39;, onSuccess: Function.createDelegate(this, deactivateAList) });"><input type="hidden" id="requestSequence" name="requestSequence" value="24" />

javascript:

`

<script type="text/javascript">
function deactivateAList() {
    document.getElementById("AList").style.display = "none";
}
</script>

`

请告诉我如何解决此错误。

4

1 回答 1

6

我已经添加了 :

<add key="UnobtrusiveJavaScriptEnabled" value="true" />

Web.Config中

于 2012-08-29T10:03:54.850 回答