Disabling LinkButton using JavaScript?

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
 
T

Terry Orzechowski

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?
 
V

Vidar Petursson

element onclick="DoSomething(); this.disabled=true"

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top