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>
"
);
}
是一样的。
只是代码位置不同。
查看全文
相关阅读:
C#的ugui与XLua整合的案例
关于C#调用XLua的函数抛出attempt to call a nil value (global 'print')
关于文件上传的坑,tomcat一重启图片就消失
linux服务器安装zookeeper本地项目远程连接
使用eazyExcel读取数据结合mybatis批量保存到数据库(优化批量保存)
jpa set值持久化解决办法
cascade级联关系
@JoinTable和@JoinColumn
json操作容易出现的细微问题
attr和prop的区别
原文地址:https://www.cnblogs.com/simhare/p/836735.html
最新文章
十分钟助你跑起eladmin
Spring+Quartz 实现简单定时器
2020/9/20 一年目标
当你的知识量和经验不能够让你足够自信的时候
整数类型不使用第三个元素交换两个元素的值
为什么说log用占位符比用字符串连接比较好
长度非0的数组是可变的
整数类型的几种写法
Object 的 clone
可用于springboot的jar的扫描特定包的所有类的方法
热门文章
环境变量的Path和CLASSPATH,以及ClassPath中的.的意思。还有javac javap的简单使用
BigDecimal注意点
Arrays.asList(new int[]{1,2,3})和Arrays.asList(new Integer[]{1,2,3})
jenkins配置github钩子
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.my.system.mappe
FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: PathVariable annotation was empty on param 0.
docker学习
使用mybatis-plus报错Invalid bound statement (not found):
linux下mysql安装
ngui物件在Scenes中有显示,在game视图中没有显示的原因
Copyright © 2011-2022 走看看