How to open a new window in the browser

G

Giovanni Cobos

I am developing a web page with Visual Basic .NET and I would appreciate if
you can help me, because I want to know how can I open a new window (not a
pop up, because they are blocked) in the browser but it should be through
code.

Thanking you in advance for your time and help.

Giovanni
 
H

Herfried K. Wagner [MVP]

Giovanni Cobos said:
I am developing a web page with Visual Basic .NET and I would appreciate if
you can help me, because I want to know how can I open a new window (not a
pop up, because they are blocked) in the browser but it should be through
code.


Mhm... What's the target audience of the Web page? If you are using the
page in an internal network, for example, you could add the page to the
popup blocker's whitelist.
 
G

Giovanni Cobos

The target audience is people from internet, that's the problem.

Maybe you know how I can resolve it.

Thank's
 
G

Giovanni Cobos

The target audience is people from internet, that's the problem.

Maybe you know how I can resolve it.

Thank's
 
C

Cor Ligthert

Giovanni,

What is the difference between a pop up and a new window.

It is the same with the difference that in a pop up are often standard
window parts deleted and therefore standard blocked by IE under XP SP2.

You can open this, however keep in mind not an ASPX page because that cause
directly serverside action and destroys than your current page.

Here a sample that I once made.
\\\
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///

I hope this helps a little bit?

Cor
 
C

Cor Ligthert

doh,
You can open this, however keep in mind not an ASPX page because that
cause directly serverside action and destroys than your current page.
The last is not true in this case, I was mixing it up with a response
redirect.

Cor
 

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

Top