Disable doubleclick of LinkButton in asp:repeater

How do I disable the doubleclick of a linkbutton which is inside an asp:repeater control.
dasberryAsked:
Who is Participating?
 
MrunalConnect With a Mentor Commented:
Hi
you can add below code in document ready event:

$('#yourlinkidhere').dblclick(function(e){ 
    e.preventDefault();
})

Open in new window


Instead of #yourlinkidhere, you can add class also like:

$('.yourlinkclasshere').dblclick(function(e){ 
    e.preventDefault();
})

Open in new window


Hope this helps you.
0
 
Aijaz ChauhanCommented:
Using Javascript or Jquery you will be able to do it.

on the client click event disable that button and when your work is completed enable your button from code behind.

I hope you got the idea.
0
 
dasberryAuthor Commented:
Thank you for your help.  That worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.