473,473 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Opening a new window

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

Jun 8 '06 #1
3 2612
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

Jun 8 '06 #2

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


Jun 8 '06 #3
"Bonzol" <Bo****@hotmail.com> schrieb:
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.


You will have to use client-side JavaScript/JScript/VBScript to open a new
window. You can use 'window.open' for this purpose:

'open' Method
<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp>

Note that opening windows can lead to problems because of popup blockers and
thus opening a new window will require additional interaction by the user to
make the window appear.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jun 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dena Leiter | last post by:
I want to send people to a new page using a redirect but I want a new window to open. Is this possible? I've tried this: <meta http-equiv="refresh"...
44
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in the...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
2
by: Keshav Gadia | last post by:
Hi, I am an ASP.net newbie. I am writing a user control that is made up of datagrid with one of the columns opening a new window to display some details on click of the set image. I have...
5
by: Roger Withnell | last post by:
This is a framed webpage with the navigation bar in "NavBar" and the main window in "Main". When opening a new page in "Main" from "NavBar" with: function OpenFrameWindow(src) { var...
3
by: Larry Bud | last post by:
Wanting to use a technology I saw for one of our apps. We have several apps that a user logs in at on the same page. The app is determined by a drop down. User credentials are checked,...
1
by: sandy21380 | last post by:
Hello, Is there a way of opening an Access form without opening the Access window? Right now when I open the form, the Access window is a lot bigger than the form so I have to resize the Access...
1
by: coolsidsin | last post by:
I have a apsx form (Form A), which on submiting does a time consuming task. So i want to open a new aspx window (Form B) in which I want do do that time consuming task and show progress to the user...
0
by: bbrewder | last post by:
I am struggling with some MSAccess automation issues. Basically, we have a .Net application that uses MSAccess for reporting (legacy code). We are able to launch MSAccess fine and even work with...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.