<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();
}