救命呀!打算用来找工作的网页出问题了,请各位大哥帮我看看!帮顶有分(急)
ztwz 2006-05-27 08:12:37 这个问题我上次也问过,不过没有解决,只是换了一下控件。这次是不行了!
问题:我的每一个aspx网页单独调试都正常,但把aspx网页加到框架网页中就出现aspx网页中的LinkButton不能使用。单击LinkButton后IE左下脚出现"网页上有错误",双击后显示错误提示
错误:'theForm._EVENTTARGET' 为空或不是对像,查看html代码
<script type="text/javascript">
<!--
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();
}
}
// -->
</script>
这句是自动生成的,我没有写过!以前我都是把LinkButton换成Button就不会出现这个错了,可是这次我在gridview的编辑模板换成Button同样会出现上面的错误,请问这个问题要怎么解决。