470,594 Members | 1,556 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

Disabling LinkButton using JavaScript?

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
Nov 17 '05 #1
2 7650
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?
-----Original Message-----
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 whenusing a ASP:Button or HTML Button... but a link button hasgot me wondering how... plz help!

Jeelz
.

Nov 17 '05 #2

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

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Jeelz" <je***@need4speed.com> wrote in message
news:15****************************@phx.gbl...
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by PB | last post: by
6 posts views Thread by Shivakumar | last post: by
2 posts views Thread by pradeep_TP | last post: by
3 posts views Thread by John | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.