Disabling LinkButton using JavaScript?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeelz

    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
  • Terry Orzechowski

    #2
    Disabling LinkButton using JavaScript?

    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?
    [color=blue]
    >-----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[/color]
    when[color=blue]
    >using a ASP:Button or HTML Button... but a link button[/color]
    has[color=blue]
    >got me wondering how... plz help!
    >
    >Jeelz
    >.
    >[/color]

    Comment

    • Vidar Petursson

      #3
      Re: Disabling LinkButton using JavaScript?


      element onclick="DoSome thing(); this.disabled=t rue"

      --
      Best Regards
      Vidar Petursson
      =============== ===============
      Microsoft Internet Client & Controls MVP
      =============== ===============
      "Jeelz" <jeelz@need4spe ed.com> wrote in message
      news:15ad01c33d 67$c9f94bf0$a10 1280a@phx.gbl.. .[color=blue]
      > 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[/color]


      Comment

      Working...