title: Disable /change button text until click procedure complate?
body: <p>I have asp Button  (runat="server") in my web form into update panel.</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="UpdatePanelDoIt" runat="server"&gt;
  &lt;asp:Literal ID="LiteralDoIt" runat="server"&gt;&lt;/asp:Literal&gt;
     &lt;asp:Button ID="ButtonDoIt" runat="server" Text="DoIt"/&gt;     
  &lt;/asp:UpdatePanel&gt;   
  </code></pre>
  
  <p>And this button do something when i click . </p>
  
  <pre><code>Private Sub ButtonDoIt_Click(sender As Object, e As EventArgs) Handles ButtonDoIt.Click
  
     me.ButtonDoIt.Enabled=False
     me.ButtonDoIt.Text="Please wait..."
  
     bla bla bla bla 'it takse one or two minute
     LiteralDoIt.Text="&lt;a href= bla bla"
     bla bla bla bla
  
     'finish process
  
     me.ButtonDoIt.Enabled=true
     me.ButtonDoIt.Text="Process Complete!"
  
  End Sub
  </code></pre>
  
  <p><strong>But my button not disabled or not change text when click this button</strong></p>
  
  <p>Only can i see "Process complete" when process finished.</p>
  
  <p>In windows form,i always use "application.doevent" after change buttontext line .and i see changing on my form.</p>
  
  <p>But asp.net not allow this.(i use vb.net)</p>
  
  <p>How can i do?</p>
  
  <p>Thanks a lot for interest.</p>