Is there a built in way to do this? I tried using a javascript but for some strange reason it's giving me hell, saying that an if block must have a terminating "end if" statement. The end if is there, however I think the program is seeing the window close before the end if, and getting screwed up.
I also tried window.close() but it said window undefined.
Any ideas?
Here's the code, it's not complex at all:
I also tried window.close() but it said window undefined.
Any ideas?
Here's the code, it's not complex at all:
Code:
<Script Runat="Server">
Sub Page_Load
if ( IsPostBack ) and ( chkNoShow.Checked ) Then
Response.Cookies("noShow").Value = "false"
Response.Write("<script language=""JavaScript"">window.close();</script>")
end if
End Sub
</script>