我使用的是自动回一个下拉启用。当我更改updatepanel上的值时,会抛出javascript错误Microsoft JScript runtime error: Member not found
。我正在使用母版页。更新面板抛出JavaScript错误:“Microsoft JScript运行错误:未找到成员”
错误位置:
错误是在存在的 “theForm.submit();”
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['ctl01'];
if (!theForm) {
theForm = document.ctl01;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
Asp.Net/HTML:
<asp:ScriptManager ID="manager" runat="server" ></asp:ScriptManager>
<asp:UpdatePanel ID="platformOutputTypes" runat="server" UpdateMode="Always" >
<ContentTemplate >
<p>
<label>Platform</label>
<asp:DropDownList ID="platform" AutoPostBack="true" runat="server" onselectedindexchanged="PlatformSelectedIndexChanged" ></asp:DropDownList>
</p>
<asp:CheckBoxList TextAlign="Left" ID="reportOutputTypes" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
我也使用jQuery在页面上。
这为我工作,但是这似乎是一个很老的bug在.NET中,没有身体关心,我猜。我希望我能给你+50分。 – Icarus 2014-12-27 22:09:07