title: How to write script alert in response.redirect on button click in asp.net
body: <p>I have written following code in asp.net . It gives error like Bad request.
  Code as follows</p>
  
  <pre><code> protected void btnSubmit_Click(object sender, EventArgs e)
   {
          // some code
   Response.Redirect("&lt;script&gt;alert('Successfully Added!');window.location ='../Admin/frmStateMgmt.aspx';&lt;/script&gt;");  // It gives error here.
  }
  </code></pre>