如何在第一次单击后禁用超链接 [英] how to disable hyperlink after first click
本文介绍了如何在第一次单击后禁用超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好编码器我的网格视图中有一个超链接,当用户点击该链接时,它将重定向到另一个页面。这是我的超链接代码:
< asp:HyperLinkField DataNavigateUrlFields = ID
DataNavigateUrlFormatString = 〜 /User/Form.aspx?ID={0}&buttonValue=Update
HeaderText = 查询 NavigateUrl = 〜/ User / Form.aspx Text = 选择 />
我想要的是当用户第二次点击它时它不会工作。我怎么能这样做
提前谢谢
解决方案
这可能会帮到你:
点击后禁用链接
使用Jquery
(文件)。就绪(函数(){
Hi coder i have a hyperlink in my grid-view when user click on that link it will redirect to another page. this is my hyperlink code:
<asp:HyperLinkField DataNavigateUrlFields="ID"
DataNavigateUrlFormatString="~/User/Form.aspx?ID={0}&buttonValue=Update"
HeaderText="Query" NavigateUrl="~/User/Form.aspx" Text="Select"/>
what i want is when user click on it second time it won't work. How can i do that
Thanks in advance
解决方案
This might help you out:
Disable link after click
Using Jquery
(document).ready(function(){
这篇关于如何在第一次单击后禁用超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文