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

opening a second page without closing the previous one

ton
Hi,
can someone please tell me hou to open a second webpage, I tried:
Response.Redirect("WebForm1.aspx", False)

but this replaces the existing page with the new one. All I want is a second
page.

(I write everything in VB.NET)

Many Thanx

Ton
Nov 18 '05 #1
1 1532
From the server - you can't. You can get this to occur from the client side
but you need to open it like a Popup does.. Add this to the ASPX file

<script language="javascript" id="popupJS">
<!--

function showPopup(link)
{
var lBufferX=10,lBufferY=30,lWidth=400;
var lLeft=screen.availWidth - lWidth - lBufferX;
window.open(link, "_blank", "scrollbars=yes, resizable=yes, toolbar=yes,
location=yes, menubar=yes, width=" + lWidth + ", height=" +
(screen.availHeight - lBufferY) + ", left=" + lLeft, true);
}
//-->
</script>

and make your link (or whatever) something like this

<a href="javascript: showPopup('Help.Aspx')">
<img src="images/help.gif" alt="Context sensitive help...">
</a>

By the way - pop-up blockers will stop this from working.

"ton" <vr*@home.nl> wrote in message
news:c0**********@news2.tilbu1.nb.home.nl...
Hi,
can someone please tell me hou to open a second webpage, I tried:
Response.Redirect("WebForm1.aspx", False)

but this replaces the existing page with the new one. All I want is a second page.

(I write everything in VB.NET)

Many Thanx

Ton

Nov 18 '05 #2

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

Similar topics

2
by: Jawahar Rajan | last post by:
All, I have a printer friendly page that is opened when a user clicks a link on my page to get the printer friendly version, How ever when they close out the printer friendly version and return to...
1
by: MJEASSOC | last post by:
I need some help with closing a popup window. I'm making an online portfolio, that has one base page with text and thumbnails. When a user clicks on a thumb, a new window opens containing a larger...
0
by: Allan Ebdrup | last post by:
I have a ascx webcontrol that I register with: %@ Register Src="../Controls/Default/Library/Basket/Basket.ascx" TagName="Basket" TagPrefix="uc1" %> and instantiate on the page with:...
7
by: Martien van Wanrooij | last post by:
I have been faced a couple of times with the situation that I wanted to write a script and was worried about a too frequent opening and closing mysql connections. To give some examples: 1)I...
26
by: Nospam | last post by:
I am trying to open a link in a new template window : <a onclick="windowopen('example.html','example');return false;" href="http://www.example.com" target="_blank"example link</a> such that...
3
by: Andrew Poulos | last post by:
There's a HTA application that's running on a local computer (not from a URL) and the user can open a new HTML window by clicking a button The first time the user clicks the button the window...
15
by: anon | last post by:
I have a page where the ASP script create a table of links i.e. 1 = NextPage.asp?Item=1 2 = NextPage.asp?Item=2 etc What I would like to do is open an new window with this link without any...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
2
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
I am (still) relatively new to Windows applications, most of my experience has been Web based, and I am confused about what exactly happens when the Main() method is called and how to manipulate...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.