Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: redirect to the password page


Message #1 by "Anthony Delcy" <DELCYAN@l...> on Fri, 16 Mar 2001 12:05:32 -0500
Yes, window.location is a client side call and you are on the server 
side. There are several ways to do it, you can either send back a HTML 
page with the new link in as a redirect, send back a redirect HTTP 
header.

> -----Original Message-----
> From: DELCYAN@l... [mailto:DELCYAN@l...]
> Sent: 16 March 2001 17:06
> To: DELCYAN@l...; html_code_clinic@p...
> Subject: [html_code_clinic] redirect to the password page
> 
> 
> Hi,
> 
> I have a password page.htm which call my asp page and in the 
> asp page I am trying to redirect to the password page.htm but 
> I get an error on the 
> window.location = "Redirect.asp"
> 
> Can anybody help me with this.
> Do I have use the response.write to redirect to the password page.htm?
> 
> The following codes are in my asp page. 
> 
> <%
> 	dim objSpit 
> 	if Request.Form("UserName") = "" and 
> Request.Form("Password") = "" then
> 		window.location = "Redirect.asp"	
> 	end if
> %>
> <!--#include file="GTR.inc"-->
> 
> Thank you
> 
> Anthony Delcy


  Return to Index