__doPostBack('<%= btnImport.UniqueID %>', '');?具体解释,好像很厉害的函数 __doPostBack('<%= btnImport.UniqueID %>', ''); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ...<script type="text/javascript">//<![CDATA[var theForm = document.forms['form1'];if (!theForm) { theForm = document.form1;}function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); }}//]]></script>其实关键就是 theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); 就是asp.net类库自动生成到客户端的用于回发的函数,你可以在生成的页面中查看源代码,就可以看到这个函数了 另外更正一下,第一个函数应该是ID,不是name__doPostBack(' <%= btnImport.ClientID%>', ''); 是你页面中 有 asp:button ,asp:LinkButton 等 可触发回发的控件时就会 生成的js 代码 __doPostBack,前台js调用后台方法;第一个参数是后台方法名,第二个是后台发放需要的参数 正则写法 很急的 list遍历效率问题 一个gridview使用多个DefaultView冲突 怎样使图片大小随页面大小改变` 一般如何使用第三方控件?? MediaTickets是什么DD? 我有一个项目快做完了,可是数据文件在sqlserver2000软件里面,如何把.mdf 格式的数据库导出来放在 apoe_data目录文件里面 求助:为什么安装VS2003时,其实重启?? 从网上下载的一个BBS,放入虚拟目录后报错:。。。 一个关于Session的问题。 GridView自带的编辑更新功能 在写一个WCF。可是获取不是放在当前目录的一个文件,该怎么指定路径?
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
其实关键就是 theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
__doPostBack(' <%= btnImport.ClientID%>', '');