title: Displaying Message Box in ASP
body: <p>I want to display a message box after deletion of a record from MSACCESS. I wrote a code below but it just redirects me to the previous page. I want to display message first then to redirect.</p>
  
  <pre><code>&lt;HTML&gt;
  &lt;BODY&gt;
  &lt;%
  Dim objConn
  Dim objRS
  Dim varpnr
  varpnr = Request.QueryString("ID")
  Set objConn = Server.CreateObject("ADODB.Connection")
  objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="&amp; _
              "D:\Project.mdb"
  Set objRS = Server.CreateObject("ADODB.RecordSet")
  objRS.Open "Book", objConn, 2, 3
  
  Do Until objRS.EOF
  If objRS("PNR") = varpnr Then
  objRS.Delete
  response.write("&lt;script language=""javascript""&gt;alert
  
  ('Hello!');&lt;/script&gt;")
  End If
  objRS.MoveNext
  Loop
  objRS.Close
  objConn.Close
  Set objRS = Nothing
  Set objConn = Nothing 
  response.redirect "Delete_Entry.asp"
  %&gt;
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>