在Asp.net中的标签上显示警告消息 [英] Display Warning Message on tag in Asp.net
本文介绍了在Asp.net中的标签上显示警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有使用
< a href =#" ----- =">
</a>
在这里单击链接后,我正在显示.pdf文件,但在此之前我想显示警告消息,然后单击确定"按钮,它将打开Pdf文件,如果单击取消"按钮,则它将不显示pdf文件.
请为此向我提出建议,
Hello All,
I have use
<a href="#" -----="">
</a>
Here After clicking on link i am displaying .pdf file but before that i want to display a warning message and in i click on OK button then it will open Pdf file,if i click on cancel button then it won.t display pdf file.
Please suggest me about that,
推荐答案
检查这些博客
http://stackoverflow.com/questions/7122086/show-warning- message-to-user-in-asp-net [ ^ ]
http://www.arpitkhandelwal.com/2010/01/displaying-warning- messages-in-aspnet.html [ ^ ]
--NDK
check these blogs
http://stackoverflow.com/questions/7122086/show-warning-message-to-user-in-asp-net[^]
http://www.arpitkhandelwal.com/2010/01/displaying-warning-messages-in-aspnet.html[^]
--NDK
<a href="whatever.pdf" onclick="return confirm(''This is a warning message about PDFs for some reason.'')">
从onClick处理程序返回false会抑制通常的行为(遵循链接).
Returning false from an onClick handler suppresses the usual behaviour (following the link).
这篇关于在Asp.net中的标签上显示警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文