title: How to show notification or message from server-Side in asp.net?
body: <p>As you can see <em><code>I want to show to client some text which are most Important for Client's</code></em>. so I plan to show Alert form server side . for implementing this I create <strong>JScript Function</strong> Like below Code:</p>
  
  <pre><code> function ShowMessage(s) {
          alert(s);
   }
  </code></pre>
  
  <p>So in cs code write this method to call <strong>JS-Function</strong>:</p>
  
  <pre><code>public static void ShowMessage(System.Web.UI.Page Pointer, string Message)
  {
      if (!Pointer.ClientScript.IsStartupScriptRegistered("message"))
          Pointer.Page.ClientScript.RegisterStartupScript
              (Pointer.Master.GetType(), "message", "ShowMessage('" + Message + "');", true);
  }
  </code></pre>
  
  <p><strong><code>This Code work well ;)</code></strong></p>
  
  <p>So I try to approve My web-app. and <strong><code>using Update-panel and Script-Manager</code></strong>. after using them I Got new Problem.(put all button in Update-Panel)</p>
  
  <p>In each <em><code>Button-Click</code></em> or better say for each <em><code>Post-back</code></em> occur, If Call <code>ShowMessage</code> method -> <strong>Nothing happen</strong>. no message , no alert!!! </p>
  
  <p>Question :</p>
  
  <ul>
  <li>Why this code don't work in Update-Panel?   </li>
  <li>How to Fix this? or Is It better way to show message?</li>
  </ul>