I thought this code would make that happen:
Nothing is happening. I am not going back, there is no javascript error, it just posts back and stays on the same page. Do you see what's wrong? Thanks.Code:Protected Sub btnCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCancel.Click ' Dim script As String = "<script>history.go(-1);</script>" ' Page.RegisterStartupScript("backupPage", script) ClientScript.RegisterClientScriptBlock( _ Me.GetType, _ "GoinBack", _ "<script type='text/JavaScript'>history.go(-1)</script>") End Sub




Reply With Quote