简体   繁体   English

JavaScript问题doPostBack

[英]javascript problem doPostBack

I am having some problems. 我有一些问题。

My page is failing in this javascript code (the second line): 我的页面在此javascript代码中失败(第二行):

function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }

It is telling me: 它告诉我:

'theForm.onsubmit' is null or not an object. 'theForm.onsubmit'为null或不是对象。

Any ideas please? 有什么想法吗?

Thanks ! 谢谢 ! C C

您能否确定您的标记(html)表单标记具有runat =“ server”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM