I want the message box popup and after display user click OK then it will redirect to the target page. The problem is it will directly go to the target page without display the popup message. I have tried all coding that I've found but still doesn't function. Please check my coding if there is something missing tq.
Try
......
da1.Fill(ds, "Student")
da2.Fill(ds, "StudentAccess")
Validate()
ClientScript.RegisterStartupScript(Me.GetType(), "AlertMessageBox", "alert('Your Data Has Been Saved, Thank You for Register.');", True)
Response.Redirect("Verify.aspx")
con.Close()
Catch ex As Exception
ClientScript.RegisterStartupScript(Me.GetType(), "AlertMessageBox", "alert('Error');", True)
End Try