Disabling LinkButton using JavaScript?

  • Thread starter Thread starter Jeelz
  • Start date Start date
J

Jeelz

Hi Guyz,

Would appriciate any tip on disabling an ASP.NET
LinkButton using client sided code like javascript.

My Requirement is such that the user should be allowed to
click on the link button only once (viz. he should not be
allowed to submit the form twice). This stuff is easy when
using a ASP:Button or HTML Button... but a link button has
got me wondering how... plz help!

Jeelz
 
It seems to me that if you just had the link button call a
client side function, that disabled or removed the button,
or set a boolean it would do the job? Write me back if my
understanding of the problem was too simple or you do not
know how to do this?
 
element onclick="DoSomething(); this.disabled=true"

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
 
Back
Top