Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 July 7th, 2003, 09:49 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP Equivalent

Is there an ASP equivalent of the following Javascript code?

top.location.href = "http://www.mydomain.com"



 
Old July 7th, 2003, 09:51 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 202
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can use:
Code:
    Response.Redirect("http://www.mydomain.com")
Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.
 
Old July 7th, 2003, 02:47 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the response, but I am aware of the Response.Redirect method. If you notice "top." means the top most window, so if the page was within a frame the entire browser window would display the new page, whereas the Redirect method would simply redirect to the new page within a frame.

 
Old July 8th, 2003, 03:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

The only ASP alternatives I can think of is to
1. use ASP to write that javascript
2. use ASP to control the frameset.
You see, the problem is that ASP is server-side script that just processes one HTTP request at a time, whereas frames are a client-side 'trick' managed entirely by the browser.





Similar Threads
Thread Thread Starter Forum Replies Last Post
description != '' equivalent XMLUser XSLT 3 March 1st, 2008 12:58 PM
"HtmlAnchor" equivalent arunagottimukkala ASP.NET 1.0 and 1.1 Professional 0 November 5th, 2007 06:14 AM
Server Includes - ASP.Net equivalent rit01 ASP.NET 2.0 Basics 2 February 21st, 2006 10:31 AM
A Yes/No dialog equivalent under asp.net badgolfer ASP.NET 1.0 and 1.1 Basics 2 June 11th, 2004 09:27 PM
javascript equivalent lcsgeek Classic ASP Basics 0 September 22nd, 2003 07:17 AM





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