Solved

Disable doubleclick of LinkButton in asp:repeater

Posted on 2014-01-19
3
656 Views
Last Modified: 2014-01-20
How do I disable the doubleclick of a linkbutton which is inside an asp:repeater control.
0
Comment
Question by:dasberry
3 Comments
 
LVL 2

Expert Comment

by:Aijaz Chauhan
Comment Utility
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
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
Comment Utility
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
 

Author Comment

by:dasberry
Comment Utility
Thank you for your help.  That worked.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now