from the main web page you can select a report and view it in another window.
however if I visit another part of the site after doing this, and the user hits the browser's back button, the report opens up again!
Does anyone know why this is happening and what I can do to prevent this?
below is the code that handles the button click which launches a seperate window for the report:
however if I visit another part of the site after doing this, and the user hits the browser's back button, the report opens up again!
Does anyone know why this is happening and what I can do to prevent this?
below is the code that handles the button click which launches a seperate window for the report:
VB.NET:
Protected Sub btn_openReport1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_openReport1.Click
Dim rpt_name = Me.cbo_selectReport2.SelectedItem.Text
Response.Write("<script>window.open('Reports/" & rpt_name & ".aspx','','status=1,toolbar=1,location=1,menubar=1,directories=1,resizable=1,scrollbars=1,height=window.height,width=window.width');</script>")
end sub