注册 登录
编程论坛 ASP.NET技术论坛

大家来看看

nimasile000 发布于 2009-08-11 21:10, 708 次点击
theform._EVENTTARGET 为空或不是对象 就是我所有按扭事件 全部 不好使了!~

上午还好使 回家就不好使了,。!` ]、

什么都不好使了

jquery也不好使了!`

我上网查

<script type="text/javascript">
<!--
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自动生成的代码

我把这个地方

var theForm = document.forms['aspnetForm'];

改成我的表单名 form1就好使!`

但是在呼出页面 还是和以前一样

我什么也没碰啊  怎么回事?
0 回复
1