简体   繁体   中英

asp.net / javascript not generate __dopostback

Some times my portal not generate this function on client side:

    <script language="javascript" type="text/javascript">

function __doPostBack(eventTarget, eventArgument) {
    var theform;
    if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
        theform = document.Form1;
    }
    else {
        theform = document.forms["Form1"];
    }
    theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
    theform.__EVENTARGUMENT.value = eventArgument;
    theform.submit();
}

I have my site on Microsoft CMS 2002 with framework 1.0. The problem only exists when i put one flash pop-up on home/index page.

I forced one control on form:

<form id="Form1" method="post" runat="server" >
        <asp:LinkButton ID="RequirePostBackScriptLink" runat="server" style="display:none;" />  
        <table width="1003px" border="0" cellpadding="0" cellspacing="0">
            <tr>

...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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