473,413 Members | 1,778 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,413 software developers and data experts.

Open a Page in New Window

Hi,
I have created a web application. When the user presses a button, I want a
new Explorer window to be launched with the new page. Right now to move from
page to page I am using Server.Transfer but this api does not have a way to
open the link in a different browser window. Can any one tell me how I can
accomplish this?

Shreyash B. Patel

Nov 18 '05 #1
3 1346
This is only available via javascript's window.Open();

Karl

"Shreyash B. Patel" <Shreyash B. Pa***@discussions.microsoft.com> wrote in
message news:E6**********************************@microsof t.com...
Hi,
I have created a web application. When the user presses a button, I want a new Explorer window to be launched with the new page. Right now to move from page to page I am using Server.Transfer but this api does not have a way to open the link in a different browser window. Can any one tell me how I can
accomplish this?

Shreyash B. Patel

Nov 18 '05 #2
You can open new browser windows only on the client-side.

"Shreyash B. Patel" <Shreyash B. Pa***@discussions.microsoft.com> wrote in
message news:E6**********************************@microsof t.com...
Hi,
I have created a web application. When the user presses a button, I want a
new Explorer window to be launched with the new page. Right now to move from
page to page I am using Server.Transfer but this api does not have a way to
open the link in a different browser window. Can any one tell me how I can
accomplish this?

Shreyash B. Patel
Nov 18 '05 #3
I have a solution:

When you use a repeater - Control in ASPX you can use for example the
containing of a column of a database as a variable for the HTML Code.
Example: When you put this line in the ItemTemplate-section of the repeater:

<td><a href=<%# DataBinder.Eval(Container.DataItem, "pagetolounch") %>
target="_blank"><img src="images/info.gif" alt="Artikelinformation"
border="0"></td>

Then (because of target="_blank") the link will open a new browser - window
of the page contained in the column "pagetolounch".

You dont need a real database, you can use a DataTable - Object in memory to
realize this. See the examples in Visual Studio.

It´s up to you to decide if this solution is too complicated to realize only
for one button. For me it was a good solution, because I was using the
DataTable object showing some articles, each heaving an information - button
to show the article information on a new page.

I hope I could help you.
Greetings, Wolfgang

--
Wenn du es eilig hast, gehe langsam. (Konfuzius)

"Shreyash B. Patel" wrote:
Hi,
I have created a web application. When the user presses a button, I want a
new Explorer window to be launched with the new page. Right now to move from
page to page I am using Server.Transfer but this api does not have a way to
open the link in a different browser window. Can any one tell me how I can
accomplish this?

Shreyash B. Patel

Nov 19 '05 #4

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

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
4
by: Dan Cruz | last post by:
Below are two files: Main.asp and Help.asp. I've stripped it down to the 'barest-of bones' so that anyone willing to help can duplicate the problem on their own systems. ***Main.asp*** looks...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
3
by: ACaunter | last post by:
Hi all, I need to set a session variable and open a new window with a single click of an asp.net button. My problem is that it always takes two clicks.. one sets the session and the other opens...
6
by: Jack | last post by:
I have a main webpage that has a list of records, each with a link to a window.open function call. As an example, a page that opens is editrecord.aspx?RecordID=34, and another is...
18
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
11
by: Dave | last post by:
For some reason, the below lines only work on select machines. All machines are running IE6. IE SP's and OS's vary. When it doesn't work, default.aspx (the page that this code is in) opens and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.