Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 29th, 2005, 06:23 PM
Registered User
 
Join Date: May 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Opening new window in button handler

I'm writing an ASP.Net registration control that has to do two things:
1) Add the registrant to the database
2) Forward the user to a page on another site to enter credit card information

I'm handling the database update in a button handler, and I would like to open a new window with the page on the other site while in the button handler code. I don't want to use response.redirect because I would like my site to remain on the screen, so I would like to do something similar to the javascript window.open.

Any suggestions?

Thanks


 
Old May 29th, 2005, 10:32 PM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this:

Response.Write("<script language=javascript>window.open('site add','new','window parameters');</script>")






Similar Threads
Thread Thread Starter Forum Replies Last Post
Button Handler Being called multiple times ExDb VB Databases Basics 1 January 22nd, 2006 07:32 PM
ASP/JS Button opening a new window dilbert ASP.NET 2.0 Basics 3 December 23rd, 2005 01:20 PM
opening a new window rgpassey Javascript How-To 2 September 14th, 2005 11:38 AM
Opening a new window in a button handler drono Classic ASP Basics 1 May 29th, 2005 06:12 PM
Close Parent window on opening child window pkdev Javascript How-To 8 April 11th, 2004 12:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.