W
Wayne Wengert
I have an aspx page where, after the user clicks on a button to submit the
changes, I want to prevent him/her from going back to that filled in page. I
found the code below as a response to an earlier post in this NG but it
doesn't seem to have any effect.. Afterr the user clicks on the Submit
button, the data is saved to the DB and the user sees the "Done" page but if
he/she clicks on "Back" they get the original page with all the filled-in
fields?
============= Code ===============
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
If Not Me.IsValid Then Exit Sub
SaveData()
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
Response.Redirect("frmDone2.aspx")
Response.End()
End Sub
changes, I want to prevent him/her from going back to that filled in page. I
found the code below as a response to an earlier post in this NG but it
doesn't seem to have any effect.. Afterr the user clicks on the Submit
button, the data is saved to the DB and the user sees the "Done" page but if
he/she clicks on "Back" they get the original page with all the filled-in
fields?
============= Code ===============
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
If Not Me.IsValid Then Exit Sub
SaveData()
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
Response.Redirect("frmDone2.aspx")
Response.End()
End Sub