Groups | Blog | Home
all groups > asp.net > june 2003 >

asp.net : Disabling LinkButton using JavaScript?



Jeelz
6/28/2003 4:24:07 AM
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!

Terry Orzechowski
6/28/2003 8:32:24 AM
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?

[quoted text, click to view]
Vidar Petursson
6/28/2003 8:13:56 PM

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

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
[quoted text, click to view]

AddThis Social Bookmark Button