Click to See Complete Forum and Search --> : redirect problems
benbramz
09-02-2005, 06:36 PM
hello again! :rolleyes:
having problems with the respose.redirect element of asp
im using this at the moment:
<% Page = "url.asp?id=rstest("id")" %>
<% Response.Redirect (Page) %>
im getting errors and have tried it a few ways - but whats the way to do this?
cheers
chrismartz
09-02-2005, 07:19 PM
try
<%
Dim Page
Page = "url.asp?id=" & rstest.fields("id")
Response.Redirect Page
%>
buntine
09-02-2005, 08:43 PM
You will confuse the engine when you embed double quotes like that. Use Chris's example.
Also, ensure page buffering is turned on. If your using an old version of IIS, add this to the top of the page:
Response.Buffer = True
Regards.
benbramz
09-03-2005, 11:54 AM
thanks guys!
benbramz
09-03-2005, 12:38 PM
actully....how do i alter that snippet to work with query strings?
Page2 = "page.asp?id=" & request.fields("id")
but to no avail, it just did nothing....
cheers
PhillMc
09-03-2005, 02:06 PM
actully....how do i alter that snippet to work with query strings?
Page2 = "page.asp?id=" & request.fields("id")
but to no avail, it just did nothing....
cheers
request.querystring("varName")