opening a second page without closing the previous one

T

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
 
B

Bryan Donaldson

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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top