J
Jack
Hi,
How do I open a new window in a button click event (server-side)?
I need to open it from this event because once the user has click the
button, the event handler does some processing and creates a query
string.
If I didn't need the query string it wouldn't be a problem - I would
just use javascript client-side.
e.g.
Private Sub PreviewButton_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles PreviewButton.Click
-process data
-create query string
-open new page with query string
End Sub
I have tried adding this:
PreviewButton.Attributes.Add("onclick",
"window.open('somedoc.html','somename',
'width=150,height=150,resizable=1)")
and this:
Response.Write("<script
language=javascript>window.open('somedoc.html',' new')</script>")
without luck!
Thanks,
Jack
How do I open a new window in a button click event (server-side)?
I need to open it from this event because once the user has click the
button, the event handler does some processing and creates a query
string.
If I didn't need the query string it wouldn't be a problem - I would
just use javascript client-side.
e.g.
Private Sub PreviewButton_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles PreviewButton.Click
-process data
-create query string
-open new page with query string
End Sub
I have tried adding this:
PreviewButton.Attributes.Add("onclick",
"window.open('somedoc.html','somename',
'width=150,height=150,resizable=1)")
and this:
Response.Write("<script
language=javascript>window.open('somedoc.html',' new')</script>")
without luck!
Thanks,
Jack