Actually, I don't know if it's possible to open a new window with
vb.net - so I guess you'll have to use JavaScript or so. I've written
two examples below. Possibly it's example 2 you need?
- Maate
' Two examples on how to open a window with JavaScript in .NET
'(replace the about
:blank with the url)
sub page_load
' 1: Creates a link on the fly with the text 'new window' :
Response.Write("<br><a
onclick=""window.open('about
:blank','window2','wid th=400,height=200');""
href=""#"">new window</a>")
' 2: Opens a window each time you run the line of code:
Response.Write("<script
language=""JavaScript"">window.open('about
:blank') ;</s" & "cript>")
end sub
Cor Ligthert [MVP] skrev:
Bonzol,
Although it is probably possible, will that give you for sure problems,
ASPNET is based on a chain of pages. You sent and you get pages posted back.
With opening a second page and getting that back you will become for sure in
trouble.
Such a second page is mostly called a PopUp by the way.
Cor
"Bonzol" <Bo****@hotmail.com> schreef in bericht
news:11**********************@c74g2000cwc.googlegr oups.com... Vb.Net 2003, 1.1. Web application.
Hey there
I have this,
Response.Redirect("FileFiew.aspx")
to go to a new page, but how do I open that page in a new window? So I
will have 2 pages open,, the original page, and the page I opened.
thanx in advance