title: Pop Up success mesg doesn't work for me
body: <p>I created a simple e_form with insertion button, I wanna add pop up message if the insertion process succeed, I add it alone and it works but when combining it with my code I got an error.</p>
  
  <p>my code is    </p>
  
  <pre><code>protected void ImageButton1_Click(object sender, EventArgs e)
  { 
      // connection stuff...
      cmd.Parameters.AddWithValue("@full_name", TextBox1.Text);
      cmd.Parameters.AddWithValue("@dob", TextBox5.Text);
      cmd.Parameters.AddWithValue("@id_no", TextBox2.Text);
      int result;
      result=cmd.ExecuteNonQuery();
      if result &gt;0
      {
          Page.ClientScript.RegisterStartupScript(this.GetType(),
           "script", "&lt;script&gt;data has been added successfully&lt;/script&gt;");            
          con.close();
      }
  } 
  </code></pre>