惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
T
Tenable Blog
D
DataBreaches.Net
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
V
Visual Studio Blog
B
Blog
雷峰网
雷峰网
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
InfoQ
M
MIT News - Artificial intelligence
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
The Cloudflare Blog
L
LangChain Blog
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
博客园 - 司徒正美
T
The Exploit Database - CXSecurity.com
Google DeepMind News
Google DeepMind News
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Attack and Defense Labs
Attack and Defense Labs
Martin Fowler
Martin Fowler
SecWiki News
SecWiki News
T
Threat Research - Cisco Blogs
J
Java Code Geeks
Cyberwarzone
Cyberwarzone
Forbes - Security
Forbes - Security
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
O
OpenAI News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Schneier on Security
Schneier on Security
S
Security @ Cisco Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
The Hacker News
The Hacker News
H
Help Net Security
Y
Y Combinator Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tor Project blog
量子位
U
Unit 42
S
SegmentFault 最新的问题
V
V2EX
D
Docker

博客园 - Carlwave-陆飞(Fei.Lu)

找到一个在上海租房非常不错的网站 - 一步租房网,推荐推荐,综合了赶集,58同城,搜房,安居客等所有的信息 SQL SERVER2012中使用游标来备份数据库 阔别N年,仅仅记录一下,独自一人饮酒,这滋味。。。你懂的。。 推荐一处买望远镜的网站:博士能望远镜上海官方销售 - 38度光 http://www.38optics.com VS.net图片加水印的代码 悼哀三天,沉痛追忆一个故人的“离别” 选择斯诺克球杆的基本要素 斯诺克之星 - 白沙台球杆 官方 及 派蔻台球杆 官方 www.snkstar.com - 最专业的台球杆销售网站 自动记录数据库存储过程的更新和改变,并产生日志 我最近在忙啥列?好好回忆下。。。 使用radion button选择datagrid的行(在datagrid中使用radio buttons) 在伦敦生活工作-2(由于本人懒惰的关系,这篇估计是最后一篇了,呵呵) 在伦敦工作生活—随笔-1 第一次醉酒呕吐,纪念一下~~~ 转:《35岁前成功的12条黄金法则》,在新的一年激励下所有辛苦的程序员 ASP.NET 页面对象模型 电信要再这麽任意搞垄断,任意妄为,等中国的网民都成了网络暴民看他怎么收场!! VS2005+SQL2005 Reporting动态增加报表(*.rdlc)数据源 SQL 2005 Reporting Services:物理分页和逻辑分页
自制控件:点击页面上的按纽,弹出一个正在处理的层,处理完毕后该层消失
Carlwave-陆飞(Fei.Lu) · 2007-12-19 · via 博客园 - Carlwave-陆飞(Fei.Lu)

    该控件功能如标题。我这里给一些简单的介绍和效果图。实现内容请下载示例代码。
    https://files.cnblogs.com/Carlwave/NewLayerWhenClick.rar

控件版权:当然是归我所有拉。哈哈。不过您可以任意下载并使用。修改的话必须邮件告知我。目的是为了如果您有更好的改进,那我这里也是改进后的版本。谢谢。

效果图:
1。点击按纽

2。该按纽实现一个大约5S的运算,点击后效果如图,从图中可以看到,该控件还实现了弹出层在DropDownList上层的功能。

3。运算完毕后,阴影层自动消失,恢复原样。

使用介绍:
这里就直接引用我开发时候写的注释了。

'Desc:This module is for show a delay layer when you click a button.
'How to use: 1 Add this control to your page.
'            2 When page load, add this function                                
'                               Me.PopLayerForButtons1.ButtonLists.Add(New ListItem("button name", "js"))
'ex: 1 desc:No exist onclick event to that button. Then add button id and blank for value.
'      codes:
'           Me.PopLayerForButtons1.ButtonLists.Add(New ListItem("button1", ""))

'    2 desc:When it's already exist an onclick event to that button
'      codes:
'           old:button1.Attributes("onclick")="javascript:doJs('p');doJs2('p2');")
'           replace by:Me.PopLayerForButtons1.ButtonLists.Add(New ListItem("button1", "doJs('p');doJs2('p2');"))

'   3 desc:When it's already exist an onclick event to that button and also with a "return". Then remove the string "return",
'          do it as ex2.
'     codes:
'          old:button1.Attributes("onclick")="javascript:doJs('p');return doJs2('p2');")
'          replace by:Me.PopLayerForButtons1.ButtonLists.Add(New ListItem("button1", "doJs('p');doJs2('p2');"))

'Note: This control is just for buttons which bring postback.
'      This control can't be used to buttons in Update Panel of AJAX.

'Created:Fei 2007-12-10

posted on 2007-12-19 13:15  Carlwave-陆飞(Fei.Lu)  阅读(3864)  评论()    收藏  举报