The Response.Redirect command

Posted on 2001-06-05
Last Modified: 2008-03-06
Who do I to get the following to work:
Response.Redirect("http://webserver/list.asp#Request.Form("name")") where Request.Form("name") is a name ex Smith  so that the adress after the Respone.Redirect should be http://webserver/list.asp#Smith

Question by:jce
LVL 15

Accepted Solution

liebrand earned 50 total points
ID: 6156304

response.redirect "http://webserver/list.asp#" & request.form("name")


response.redirect "http://webserver/list.asp#" & request("name")


Expert Comment

ID: 6156311
Put Request.form("name") into a variable. eg

dim strName

strName = Request.Form("name")

Response.Redirect("http://webserver/list.asp#" & strName)
LVL 11

Expert Comment

ID: 6156315
I think that you use ("http://webserver/list.asp?Request.Form("name")") but I am still a grunt and may be wrong.

Author Comment

ID: 6156379
The first worked fine, Thanks

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Forcing form refresh - classic ASP 7 66
Time/Date Query 11 41
can I post data from an asp page to php page? 4 51
JS does not refresh 6 18
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question