Search Tools Links Login

A better response.redirect


The response.redirect method is great for moving a user from one page to another. However, it does have one major limitation--you can only use it if absolutely nothing has been written to the page. Sometimes, you actually do want to write something to the page and then redirect it, for example when displaying the status of an operation. In this case, the following JavaRedirect function comes in handy. It requires a Java compatible browser. (Note:this script has been changed to incorporate Lewis Moten's helpful suggestions).

Original Author: Ian Ippolito (vWorker)

Code

sub JavaRedirect (strURL)
'Response.Write "redirect to:" & strURL
%>

<%
end sub

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 114 times

Categories

ASP/ HTML

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.