title: Disabling and enabling a button during postback in asp.net
body: <p>I'm trying to disable a button and change its text while doing a postback and then i want to change the text back to normal when postback is complete.</p>
  
  <pre><code>&lt;asp:Button ID="b_Generate" runat="server" onclick="b_Generate_Click" OnClientClick="this.disabled = true; this.value = 'Please Wait...';" 
  Text="Generate PPT"  UseSubmitBehavior="false" 
  style="z-index: 1; left: 05px; top: 50px; position: absolute; width: 110px;" 
  BorderStyle="Ridge" Font-Bold="True" 
  ToolTip="click here" /&gt;
  </code></pre>
  
  <p>With the above code i'm able to disable the button and change the text before post back starts but i'm not sure how to enable the button once again and change the text back to the previous one once post back is complete.</p>