• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 788
  • Last Modified:

Disable doubleclick of LinkButton in asp:repeater

How do I disable the doubleclick of a linkbutton which is inside an asp:repeater control.
0
dasberry
Asked:
dasberry
1 Solution
 
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
 
MrunalCommented:
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
 
dasberryAuthor Commented:
Thank you for your help.  That worked.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now