zoukankan      html  css  js  c++  java
  • asp.net中的postback方法

    <input type="hidden" value="0" id="__EVENTTARGET" name="__EVENTTARGET" runat="server"/>
    <input type="hidden" value="0" id="__EVENTARGUMENT" name="__EVENTARGUMENT" runat="server"/> 
    //系统的postback方法
            function __doPostBack(eventTarget, eventArgument) { 
                var theform; 
                if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) { 
                    theform = document.forms["form1"]; 
                } 
                else { 
                    theform = document.forms[0]; 
                }
                if (!theform)
                {
                    theform=document.forms[0];
                }
                theform.__EVENTTARGET.value = eventTarget.split("$").join(":"); //将$替换成:
                theform.__EVENTARGUMENT.value = eventArgument; 
                theform.submit(); 
            }
  • 相关阅读:
    关于PCA主成分分析的一点理解
    python前言
    python
    unitest单元测试TestCase 执行测试用例(二) 断言
    python基础
    python-requests中get请求接口测试
    python数据类型字典和集合
    python数据类型 列表+元组
    函数是什么?函数式编程
    sql常用
  • 原文地址:https://www.cnblogs.com/AlanWinFun/p/5333771.html
Copyright © 2011-2022 走看看