title: How to show popup message from server side
body: <p>work on asp.net vs05. i know how to show popup ,in my below syntax i show a popup when a page is load.But i want to show this popup after some action occur on server ,i have a button ,under this button event i want to do some work on server side ,then i want to show popup message .Here is my complete syntax that can show popup</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;Untitled Page&lt;/title&gt;
  
      &lt;script src="scripts/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
         &lt;script type = "text/javascript"&gt;
  
      $(document).ready(function() {
      $("#message").fadeIn("slow");
      $("#message a.close-notify").click(function() {
          $("#message").fadeOut("slow");
          return false;
      });
  });
  &lt;/script&gt;
  
      &lt;link href="StyleSheet.css" rel="stylesheet" type="text/css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
     &lt;div id='message' style="display: none;"&gt;
      &lt;span&gt;Hey, This is my Message.&lt;/span&gt;
      &lt;a href="#" class="close-notify"&gt;X&lt;/a&gt;
  &lt;/div&gt;
  
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Like the above syntax i want to show popup message from server side after some event occur .Here is my aspx  syntax:</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;Untitled Page&lt;/title&gt;
  
       &lt;script src="scripts/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
         &lt;script type = "text/javascript"&gt;
      function computeCorrectValue(type parameter)
      {
  
              $(document).ready(function() {
              $("#message").fadeIn("slow");
              $("#message a.close-notify").click(function() {
                  $("#message").fadeOut("slow");
                  return false;
              });
          });
  
  
      }    
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
          &lt;asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /&gt;&lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>C# syntax :</p>
  
  <pre><code>using System;
  using System.Data;
  using System.Configuration;
  using System.Collections;
  using System.Web;
  using System.Web.Security;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Web.UI.WebControls.WebParts;
  using System.Web.UI.HtmlControls;
  
  public partial class Default4 : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
      protected void Button1_Click(object sender, EventArgs e)
      {
          //want to do some work then want 
  
  
          Button1.Attributes.Add("onclick", "javascript:computeCorrectValue(parameter)");
      }
  }
  </code></pre>
  
  <p>Help me to show popup message after some event occur on server side.popup must look like my give first example .i can show alert message too  ,but i don't want to show alert message.url <code>http://stackoverflow.com/questions/659199/how-to-show-popup-message-like-in-stackoverflow</code> i want same thing but want to show after server event.</p>