页面传参问题

 所属目录:Java   |   类型:技术问答   |   时间:2007-05-21
 问题:

linkbutton.attributes.add("onclick","javascript:window.open()");  
  怎么传递动态参数啊。参数是linkbutton的text。?

· 网友精彩回答:

发表者:agassi001

string   txt=this.linkbutton.text;  
  linkbutton.attributes.add("onclick",  
  "javascript:window.open(linkpage?myvalue="   +   txt   +   ")");

发表者:zhilunchen

题意不是很清楚,比如传参数的意义?传到哪里?传linkbutton的text有什么用啊?

发表者:gsky

在window.open   里面的url项中传就可以   
  javascript:window.open(xxx.aspx?text="   +   txt   +   ")"

.
处理 SSI 文件时出错
© 2006-2008 All Rights Reserved