Automatically disable button

2 posts, 1 answers
  1. Stephen
    Stephen avatar
    4 posts
    Member since:
    Jun 2012

    Posted 09 Jul 2012 Link to this post

    How can I disable button automatically after  10 seconds?
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Jul 2012 Link to this post

    Hi Stephen,

    Try the following Javascript to achieve your scenario.

    JS:
    function pageLoad()
     {
      var t = setTimeout("disable()", 10000);
     }
    function disable()
     {
      var btn = $find("<%=RadButton1.ClientID %>");
      btn.set_enabled(false);
     }


    Hope this helps.

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top