Disabling LinkButton using JavaScript?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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
    Jeelz Guest

  2. Similar Questions and Discussions

    1. Linkbutton does not look like a linkbutton
      OK, I almost got my problem solved. Zen is almost there! Just that a LinkButton control inside a column in my datagrid doesn't show like a link...
    2. Overwriting the "href='javascript:__doPostBack........" in a LinkButton
      I'm building a custom LinkButton control that will confirm a deletion before processing it. I've tried a few different things, some partially...
    3. Javascript Disabling WebControls
      Hello, I have an ASP.Net web page populated with WebControls, such as textboxes and checkboxes. On this page I also have a JavaScript that...
    4. LinkButton
      Hi, I create a LinkButton in runtime, and I want to be able to access a function when a user clicks on the generated link in the page. My problem...
    5. Format of LinkButton..?
      How can I make my linkbuttons color always blue even if they are visited or not, and make them underline in hover mode free from browser settings..
  3. #2

    Default 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?
    >-----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
    when
    >using a ASP:Button or HTML Button... but a link button
    has
    >got me wondering how... plz help!
    >
    >Jeelz
    >.
    >
    Terry Orzechowski Guest

  4. #3

    Default Re: Disabling LinkButton using JavaScript?


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

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Internet Client & Controls MVP
    ==============================
    "Jeelz" <jeelz@need4speed.com> wrote in message
    news:15ad01c33d67$c9f94bf0$a101280a@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

    Vidar Petursson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139