| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> asp >> JavaScript tiao yong Asp.Net fu wu qi duan de shi jian

JavaScript tiao yong Asp.Net fu wu qi duan de shi jian

2008-09-09 07:29:14 编辑來源:互联网 评论
 
 
 
本文为【JavaScript 调用 Asp.Net 服务器端的事件】的拼音翻译版
  ke yi yong yi xia bian tong de fang fa shi xian yong JavaScript tiao yong fu wu qi duan de shi jian fang fa
  2 1、 zeng jia ru xia JavaScript fang fa
  3 zhe ge jiu shi jiang Asp.Net zhong sheng cheng de jiao ben Copy guo lai , hei hei , hen zei o 。
  4 function __doPostBack(eventTarget, eventArgument)
  5 {
  6 var theform;
  7 if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1)
  8 {
  9 theform = document.Form1;
  10 }
  11 else
  12 {
  13 theform = document.forms["Form1"];
  14 }
  15 theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
  16 theform.__EVENTARGUMENT.value = eventArgument;
  17 theform.submit();
  18 }
  19
  20 // yi xia jiu shi yao cong JavaScript zhong tong zhi fu wu qi duan , ni gai gan huo le
  21 function NotifyServer()
  22 {
  23 //. ke yi zuo yi xie she zhi , pan duan
  24
  25 Button1 shi fu wu qi kong jian de ID,'abc' ke yi zi ji she zhi , zhe ge wo xu yao gei fu wu qi chuan di yi xie xiao xi shu ju , ping shi zhi jie yong ' ji ke
  26 __doPostBack('Button1','abc')
  27 }
  28
  29 2、aspx ye mian
  30 yao zeng jia yi xia liang ge yin cang zi duan
  31 <input type="hidden" name="__EVENTTARGET">
  32 <input type="hidden" name="__EVENTARGUMENT">
  33
  34 <asp:Button id="Button1" runat="server" Text="Button" Visible="False"></asp:Button>
  35
  36 zhe li jiu shi yao zhi xing Button1 de hou tai dai ma , tong shi yao jiang ta de Visible she zhi cheng False ,( sui ran zi liao shuo bu neng jiang Enable she zhi cheng False, dan shi wo shi le yi xia jiang Enabled she zhi cheng False huan shi ke yi yong de
  37
  38 tong shi zeng jia yi ge
  39 <input type="button" id="but" onclick="NotifyServer()" value="ServerExecute"> , zhi xing fu wu qi dai ma
  40
  41 3、aspx.vb ye mian dai ma
  42 Response.Write("alert('" & Request("__EVENTARGUMENT").ToString() & "'"); ")
  43 zhe li de Request("__EVENTARGUMENT").ToString() jiu shi 'abc' de nei rong
  44
  45 4、 zhu yi shi xiang
  46 yong ci zhong fang fa , ye mian zhong bu neng you AutoPost=True de fu wu qi kong jian , yin wei you AutoPost=True de kong jian de ye mian xi tong hui zi dong sheng cheng yi shang de dai ma (2 ge hidden kong jian , huan you yi ge __doPostBack han shu ), ru guo ni de ye mian zhong you AutoPost=True de fu wu qi kong jian , na me ni bu xu yao jia yi shang de dai ma (2 ge hidden kong jian , huan you yi ge __doPostBack han shu ), zhi jie yong __doPostBack han shu ba【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
ke yi yong yi xia bian tong de fang fa shi xian yong JavaScript tiao yong fu wu qi duan de shi jian fang fa 2 1、 zeng jia ru xia JavaScript fang fa 3 zhe ge jiu shi jiang Asp.Net zhong sheng cheng de jiao ben Copy guo lai , hei hei , hen zei o 。 4 function __doPostBack(eventTarget, eventArgument) 5 { 6 var theform; 7 if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) 8 { 9 theform = document.Form1; 10 } 11 else 12 { 13 theform = document.forms["Form1"]; 14 } 15 theform.__EVENTTARGET.value = eventTarget.split("$").join(":"); 16 theform.__EVENTARGUMENT.value = eventArgument; 17 theform.submit(); 18 } 19 20 // yi xia jiu shi yao cong JavaScript zhong tong zhi fu wu qi duan , ni gai gan huo le 21 function NotifyServer() 22 { 23 //. ke yi zuo yi xie she zhi , pan duan 24 25 Button1 shi fu wu qi kong jian de ID,'abc' ke yi zi ji she zhi , zhe ge wo xu yao gei fu wu qi chuan di yi xie xiao xi shu ju , ping shi zhi jie yong ' ji ke 26 __doPostBack('Button1','abc') 27 } 28 29 2、aspx ye mian 30 yao zeng jia yi xia liang ge yin cang zi duan 31 <input type="hidden" name="__EVENTTARGET"> 32 <input type="hidden" name="__EVENTARGUMENT"> 33 34 <asp:Button id="Button1" runat="server" Text="Button" Visible="False"></asp:Button> 35 36 zhe li jiu shi yao zhi xing Button1 de hou tai dai ma , tong shi yao jiang ta de Visible she zhi cheng False ,( sui ran zi liao shuo bu neng jiang Enable she zhi cheng False, dan shi wo shi le yi xia jiang Enabled she zhi cheng False huan shi ke yi yong de 37 38 tong shi zeng jia yi ge 39 <input type="button" id="but" onclick="NotifyServer()" value="ServerExecute"> , zhi xing fu wu qi dai ma 40 41 3、aspx.vb ye mian dai ma 42 Response.Write("alert('" & Request("__EVENTARGUMENT").ToString() & "'"); ") 43 zhe li de Request("__EVENTARGUMENT").ToString() jiu shi 'abc' de nei rong 44 45 4、 zhu yi shi xiang 46 yong ci zhong fang fa , ye mian zhong bu neng you AutoPost=True de fu wu qi kong jian , yin wei you AutoPost=True de kong jian de ye mian xi tong hui zi dong sheng cheng yi shang de dai ma (2 ge hidden kong jian , huan you yi ge __doPostBack han shu ), ru guo ni de ye mian zhong you AutoPost=True de fu wu qi kong jian , na me ni bu xu yao jia yi shang de dai ma (2 ge hidden kong jian , huan you yi ge __doPostBack han shu ), zhi jie yong __doPostBack han shu ba
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
赏心悦目的模特儿(9)
赏心悦目的模特儿(8)
赏心悦目的模特儿(7)
赏心悦目的模特儿(6)
周六一日游--绿野翠蜂场(一)
骆驼峰
下一站上环
杂乱的几张Danang
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有