Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Redirecting and Opening in a New Window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Redirecting and Opening in a New Window

 Post Reply Post Reply Page  12>
Author
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Topic: Redirecting and Opening in a New Window
    Posted: 15 April 2005 at 2:17pm
I'd like to try something. I'd like to add target='_blank' to the code so it will open in a new window. But I am not sure how to do this.

Here's my current code:
 
Response.Redirect ("PrayerRequests.aspx")
 
I'd like for the web page to redirect to this web page. I want the web page to show up in a new window.
 
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2005 at 2:41pm
reponse is serverside code has no knowledge of client windows, I would just use some client javascrip block based on your conditions.
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2005 at 3:09pm
This will not work for me. Does anyone know of any functions that I could use when I redirect a web page to make it refresh automatically?
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2005 at 3:59pm
Response.Write("window.open('PrayerRequests.aspx','mywindow','width=400,height=200')")
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2005 at 10:34pm
Mart,
 
It didn't work. I got "window.open('PrayerRequests.aspx','mywindow','width=400,height=200') " on the top of my web page. There may be a small error somewhere.


Edited by Misty - 15 April 2005 at 10:41pm
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2005 at 7:28am
Sorry I meant

Response.Write("<script language=javascript>window.open('PrayerRequests.aspx','mywindow','w idth=400,height=200')</script>")
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2005 at 1:26pm
I got the following error message:
Compiler Error Message: BC30648: String constants must end with a double quote.

Source Error:

Line 329:                 lblResultsTitle.Text = "<h3>Thank you for adding your prayer request! </h3>" 
Line 330:
Line 331:                 Response.Write("<script  language=javascript>window.open('PrayerRequests.aspx','mywindow','width=400,height=200')</scri pt>") 
Line 332:
Line 333:
I tried adding some things, but it still would not work. I am not sure what's wrong.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2005 at 1:37pm
not sure if its just a formatting error or not but the </script>  has a space.


Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.