Thursday 13 April 2017

Disable button using asp.net after click and enable when postback is completed


//// HTML

      <asp:Button ID="button" runat="server"
Text="Click Me !"  OnClick="Button_Click" ClientIDMode="Static"  CssClass="butt pull-right"
OnClientClick="this.disabled = true;"

UseSubmitBehavior="False"/> 


/// You can set the timeout of that function using jquery

/////// JS

   setTimeout(EnableBTN, 5000);

       function EnableBTN() {
               $("[id*=button]").removeAttr("disabled");
            };
           

No comments:

Post a Comment

Excel Sort values in ascending order using function TEXTJOIN

 Excel ::  Text ::  1,3,5,2,9,5,11 Result :: 1,2,3,5,5,9,11 Formula ::     TEXTJOIN ( ",",1,SORT(MID(SUBSTITUTE( A1 ,","...