PDA

View Full Version : Redirecting on the server


GraemeF
08-03-2003, 01:50 AM
Hi,

It's a bit embarrassing asking such a simple question, but is it possible to take a request on one page and silently redirect the client to another?
I currently ask the client to redirect, but it looks rather... unprofessional [:I]

Cheers,
G.

bruce
08-03-2003, 04:24 AM
Yes.

Try this asp code snippet

<%

respond.rediret("http://www.domain.com/test.aspx")

%>


[b]quote:Originally posted by GraemeF

Hi,

It's a bit embarrassing asking such a simple question, but is it possible to take a request on one page and silently redirect the client to another?
I currently ask the client to redirect, but it looks rather... unprofessional [:I]

Cheers,
G.
</blockquote id="quote"></font id="quote">

pjoyce
08-03-2003, 04:52 AM
Whoops, bruce looses one point for spelling, but it hardly counts against his total... It should actually read

<%
Response.Redirect("http://www.domain.com/test.aspx")
%>

Where the part in quotation marks is the URL to which you want the user redirected.

Cheers,

pj

GraemeF
08-04-2003, 01:54 AM
Great! Thanks.

G.