Window Open Server Side

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top