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

推荐订阅源

雷峰网
雷峰网
L
LangChain Blog
GbyAI
GbyAI
F
Fortinet All Blogs
腾讯CDC
Last Week in AI
Last Week in AI
A
About on SuperTechFans
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
B
Blog
D
Docker
G
Google Developers Blog
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
B
Blog RSS Feed

博客园 - 电工男

关于电感,电抗器的Q值(品质因数) 好久不写博了. 精辟对联 escape、encodeURI 、encodeURIComponent 编码与解码 Content-Disposition中filename字段的字符编码技巧[转] 转! 主键的使用 重载,继承,重写和多态的区别 webcast不更新了? sql server 日期类型 比较 IDENT_CURRENT、@@IDENTITY 和 SCOPE_IDENTITY 返回的标识值 SQL中判断字符串中包含字符的方法 ASP.NET生成的HTML代码 win7禁用休眠,献给c盘空间不足的朋友. SQLServer2005和2008的分页技术比较[转] 浏览器兼容性系列--浅谈window.attachEvent 在ASP.NET 的服务器端控件中有三种关于 ID 的属性 jQuery对<img>赋值 MVC JQuery 为<input>赋值 jquery怎么创建一个img标签
asp.net中弹出确认窗口(confirm),实现删除确认的功能
电工男 · 2014-04-26 · via 博客园 - 电工男

<asp:Button ID="btnSub" runat="server" Text="提交" onclick="btnSub_Click" OnClientClick="return confirm('确定删除?')" />

或者加到Page_Load里
if(!IsPostBack)
{
Button1.Attributes.Add("onclick","JavaScript:return confirm('确定删除?')");
}


方法三:
<asp:Button ID="btnSub" runat="server" Text="提交" onclick="btnSub_Click" OnClientClick="{if(confirm('确定删除?')){return true;}return false;}" />


方法四:
Response.Write("<script language='javascript'>if(confirm('确定删除?'))</script>");

posted @ 2014-04-26 22:20  电工男  阅读(1115)  评论()    收藏  举报