<script type="text/javascript">
//<![CDATA[var theForm = document.forms['aspnetForm'];if (!theForm) { theForm = document.aspnetForm;}function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); }}//]]>
</script> 为什么我在网页里放一个asp:button控件后,就会给我在该页面生成如上的html代码,
我能否去掉这段代码吗?或者把aspnetForm这个名字改掉???
//<![CDATA[var theForm = document.forms['aspnetForm'];if (!theForm) { theForm = document.aspnetForm;}function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); }}//]]>
</script> 为什么我在网页里放一个asp:button控件后,就会给我在该页面生成如上的html代码,
我能否去掉这段代码吗?或者把aspnetForm这个名字改掉???
2. 如果名字是aspnetForm,应该是的表单名字是这个,你可以在下面修改
<form id="form1" runat="server">
现在能否不让他生成啊?