title: Application does not shows javascript message when UPDATE PANEL is used
body: <p>I am making ASP.NET application (C#). [Visual Studio 2010]</p>
  
  <p>In that when i try to use client side message using javascript, it shows me message when update panel is not used.</p>
  
  <p>But as soon as i added update panel to my application for preventing it from postback, Its not showing me such javascript message on insertion of record.</p>
  
  <p>In the following way i am trying to display message:</p>
  
  <pre><code>Response.Write("&lt;head&gt;&lt;script type='text/javascript'&gt;alert('Member Registered Sucessfully')&lt;/script&gt;&lt;/head&gt;");
  </code></pre>
  
  <p>My Code:</p>
  
  <pre><code> try
  {
      con.Open();
      cmd = new SqlCommand("insert into register values(@name,@city,@address,@mobile)",con);
      cmd.Parameters.AddWithValue("@name",txtName.Text);
      cmd.Parameters.AddWithValue("@city", ddlCity.Text);
      cmd.Parameters.AddWithValue("@address",txtAddress.Text);
      cmd.Parameters.AddWithValue("@mobile", txtMobile.Text);
      da = new SqlDataAdapter(cmd);
      ds = new DataSet();
      da.Fill(ds);
      int res=cmd.ExecuteNonQuery();
      if (res &gt; 0)
      {
          Response.Write("&lt;head&gt;&lt;script type='text/javascript'&gt;alert('Member Registered Sucessfully')&lt;/script&gt;&lt;/head&gt;");
      }
      else
      {
          Response.Write("&lt;head&gt;&lt;script type='text/javascript'&gt;alert('Member Not Registered Sucessfully')&lt;/script&gt;&lt;/head&gt;");
      }
      con.Close();
  
  }
  </code></pre>
  
  <p>Please tell me where am i making mastake.</p>
  
  <p>Please guide me.</p>