控件代码:<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" BorderColor="#CCCCCC"
BorderStyle="Solid" BorderWidth="1px" onselectedindexchanged="DropDownList1_SelectedIndexChanged">
</asp:DropDownList>
<asp:DropDownList ID="DropDownList2" runat="server" ></asp:DropDownList>当我点击第一个dropdownlist更改项是,就会出现js错误"错误: 对象不支持此属性或方法",下面这段是自动生成的代码var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
说theForm.submit();的错误,请高手指点一下怎么解决
BorderStyle="Solid" BorderWidth="1px" onselectedindexchanged="DropDownList1_SelectedIndexChanged">
</asp:DropDownList>
<asp:DropDownList ID="DropDownList2" runat="server" ></asp:DropDownList>当我点击第一个dropdownlist更改项是,就会出现js错误"错误: 对象不支持此属性或方法",下面这段是自动生成的代码var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
说theForm.submit();的错误,请高手指点一下怎么解决
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货