All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
PHP实例:PHP生成带有雪花背景的网站验证码_php资料_编程技术
ASP.NET技巧:如何在页面之间传递数据量较大的复杂数据?_.net资料_编程技术
asp.net2.0登陆控件之登录控件典型应用
apache的几个设置(目录,权限等)_php资料_编程技术
SQL查询语句对象化的实现(C#)_[SQL,Server教程]
asp.net,实现购物车详细代码_[Asp.Net教程]
如何在.NET中访问MySQL数据库_[Asp.Net教程]
ASP.NET4实用方法Url,Routing的使用_[Asp.Net教程]
delphi列表框组件(TListBox)使用实例
十天学会ASP.net,第十天_.net资料_编程技术
Reading number is top 10 pictures
奇趣的世界记录2
八个盛产美女的国家1
云南大理的美女
NeedWallpaper13
The world's top ten most beautiful railway station1
无题
Group of female porn in 《westwards》, uninhibited woman threatened to not the bottom line
So beauty, will let you spray blood8
Chinese paper-cut grilles art appreciation3
大人物的礼物
Download software ranking
美女写真3
Professional killers2 for Android
Unix video tutorial5
Sora aoi, the maid, students' uniforms
Professional killers2 data package
Ashlynn Video5
I'm come from Beijing2
C#程序员参考手册
Proficient in Eclipse
Kung fu panda - the secret of the teacher
delv published in(发表于) 2014/1/6 9:12:14 Edit(编辑)
实现在页面中单击按钮关闭页面_[Asp.Net教程]

实现在页面中单击按钮关闭页面_[Asp.Net教程]

实现在页面中单击按钮关闭页面_[Asp.Net教程]

在aspx页面中要实现单击一个按钮(服务器端控件)来关闭当前页面,只需要在aspx页面的page_load()方法中加入下列语句:

this.btnClose.Attributes.Add("onclick","window.close()");//btnClose是按钮的名字


  此语句是给其添加一个单击属性,调用window.close()方法。


  2> 在html页面中要实现单击一个按钮(html控件)来关闭当前页面,只需要在html代码中的按钮控件代码中添加一个onclick属性即可,代码如下:


< INPUT id="Button1" type="button" value="Button" name="Button1" onclick="window.close>


来源:网络







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.