I would like to show a pdf file when a user clicks on an image control. I am using the reponse.write comand. It used to work ( I thought) but does not now. I am using vb.net. Here is the sub.

Private Sub ImageButton1_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click

Response.Write("<script language=javascript>window.open('pdf files/Certificate and Scope.pdf');</script>")

End Sub

Can anyone tell me what is wrong? Thanks,

Jason