473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to: load a web page into new browser window via code behind?

In my code behind (VB.NET 2.0), I've been using
Response.Redirect("mypage.aspx") to navigate from one page to the next.
What I'd like to do now is load a new browser window and load it with the
page I specify using code behind (VB.NET). I've searched and searched but
I'm not finding an easy code behind approach to doing this -- sorta leaves
me nervous that something so very simply might be a lot more difficult to
accomplish? I've seen hokey solutions using hyperlink control, but nothing
that is clean and simple.

Any suggestions?

Do a new window also imply a new session?

Thanks, Rob.
Apr 3 '06 #1
2 2249

Rob,

The normal way is to do it on the client-side via a hyperlink. You can
use javascript to manipulate the link's href property to send it to a
new page more intelligently.

Your other option is client-side javascript sent in the response on
postback. This path will cause problems with pop-up blockers.

Matt
Rob R. Ainscough wrote:
In my code behind (VB.NET 2.0), I've been using
Response.Redirect("mypage.aspx") to navigate from one page to the next.
What I'd like to do now is load a new browser window and load it with the
page I specify using code behind (VB.NET). I've searched and searched but
I'm not finding an easy code behind approach to doing this -- sorta leaves
me nervous that something so very simply might be a lot more difficult to
accomplish? I've seen hokey solutions using hyperlink control, but nothing
that is clean and simple.

Any suggestions?

Do a new window also imply a new session?

Thanks, Rob.


Apr 3 '06 #2
Thanks Matt,

I guess I'm pretty frustrated that .NET 2.0 does not have any code behind
functionality built it that would support this relatively simple task. It
seems I'm always going back to JavaScript to get the job done. Which
obviously begs the question why bother with ASP.NET at all. Wasn't the
entire point of ASP.NET to provide one single environment from which to work
in and reduce the number of languages/technologies to learn?

Rob.

<dm*******@gmail.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...

Rob,

The normal way is to do it on the client-side via a hyperlink. You can
use javascript to manipulate the link's href property to send it to a
new page more intelligently.

Your other option is client-side javascript sent in the response on
postback. This path will cause problems with pop-up blockers.

Matt
Rob R. Ainscough wrote:
In my code behind (VB.NET 2.0), I've been using
Response.Redirect("mypage.aspx") to navigate from one page to the next.
What I'd like to do now is load a new browser window and load it with the
page I specify using code behind (VB.NET). I've searched and searched
but
I'm not finding an easy code behind approach to doing this -- sorta
leaves
me nervous that something so very simply might be a lot more difficult to
accomplish? I've seen hokey solutions using hyperlink control, but
nothing
that is clean and simple.

Any suggestions?

Do a new window also imply a new session?

Thanks, Rob.

Apr 4 '06 #3

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

Similar topics

4
by: Jake Lewis | last post by:
I have an HTML page that loads fine including the .js file <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <script...
10
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's...
3
by: Shapper | last post by:
Hello, I am working on an ASP.NET/VB web site. I have several links including menu links. Considerer a want to load a page named page.aspx. I can do it using javascript. Or using this code:...
15
by: H00ner | last post by:
Hello All Hope you can help Been pulling my hair out about a popup problem in ASP.NET. One of the forms i wrote requires the user to select a product from a list in a popup web form. the...
6
by: sylcheung | last post by:
Hi, How can I be notified when the document load is complet in JavaScript? I am referring to the whold document load is complete, mean all images/external files/frame/iframes have been loaded. ...
4
by: Ralf | last post by:
Here is my scenerio and what I am doing. I am open to other ways of doing this is it makes sense. I have a cell withing a row within a datagrid. When this cell is clicked (its a date field), I...
5
Frinavale
by: Frinavale | last post by:
I have a slight problem with a Tab Control that I've developed for an application. Once sent to the browser it runs via JavaScript. The JavaScript is dynamically generated by my .NET code. ...
9
by: Denis | last post by:
Hello, Maybe somebody already solved this task. I need to load JS asynchronously without blocking browser. This means that I do not need to block browser to load/render during loading script. The...
3
by: Queez | last post by:
Very quick question. I have a master page (M1) and three content pages (C1, C2, C3). In M1, there's a list of three anchors (A1, A2, A3) which point towards the three content pages. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.