zoukankan
html css js c++ java
aspx页面中的OnClientClick,和cs代码中的Response.Write("")
在Button中
<
asp:Button
ID
="lblToInvoic"
runat
="server"
OnClientClick
="fff()"
CssClass
="btn2"
Text
="开发票"
OnClick
="lblToInvoic_Click"
/>
然后在页首写<script language="JavaScript">
function
fff()
{
}
和在cs文件里写:
protected
void
lblToInvoic_Click(
object
sender, EventArgs e)
{
..
Response.Write(
"
<script>window.dialogArguments[0].document.getElementById(window.dialogArguments[1]).value =\
""
+ strValue1 +
"
\
"
;window.dialogArguments[0].document.getElementById(window.dialogArguments[2]).value =\
""
+ strValue2 +
"
\
"
;window.dialogArguments[0].document.getElementById(window.dialogArguments[3]).value =\
""
+ strValue3 +
"
\
"
;window.dialogArguments[0].document.getElementById(window.dialogArguments[4]).value =\
""
+ strValue4 +
"
\
"
;window.close();</script>
"
);
}
是一样的。
只是代码位置不同。
查看全文
相关阅读:
oracle 查询表空间
oracle 创建表空间
webservice SOA
WCF初识
win10远程桌面身份验证错误,要求的函数不受支持
一台主机两台显示器实现方式学习
实现Http Server学习
lucene索引和查询文件系统存储
java 大文件输入方式FileOutputStream
tar
原文地址:https://www.cnblogs.com/simhare/p/836735.html
最新文章
解决MySQL报错ERROR 2002 (HY000)
在虚拟机里面安装mysql
在chrome浏览器英文环境下为什么上面现行代码不起作用?
课程上例子这两行代码起什么作用
JSP 国际化
国际化的原理是什么?
国际化是指什么?
如何在网上找java包
表单属性method的值get和post的区别?什么时候用get?什么时候用post?
如何获取所有的参数名和参数值?用request.getParameterNames(); Enumeration enu=request.getParameterNames(); while(enu.hasMoreElements()){ String paraName=(String)enu.nextElement(); System.out.println(paraName+"
热门文章
Linux系统时间和硬件时间设置
doker仓库更换过期的自签证书
commit your changes or stash them before you can merge.
常用点
centos下装不上mysqlclient
celery结合django使用
Linux下安装mysqclient报错
时间戳转换格式化时间
优秀博客链接
mysqlclient库的安装
Copyright © 2011-2022 走看看