Dumb non-programmer question--what's redir.asp?

  • Thread starter Thread starter Hiawatha Bray
  • Start date Start date
This is useful if you want to perhaps do some use tracking of what links are
clicked. The same thing with an advertisement, you want to pass the url you
want the user to go to as a parameter in a redirect page so you can track
the click, and you can also track other informaiton that you want along with
the click (as well as some data about the user).

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Here's the complete contents of redir.asp :

<% @ LANGUAGE = VBScript %>
<% response.redirect request.querystring() %>

If you use it, you can control the querystring sent.
That allows you to send parameters to the server where the request is being redirected to.



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 
Juan T. Llibre said:
Here's the complete contents of redir.asp :

<% @ LANGUAGE = VBScript %>
<% response.redirect request.querystring() %>

I suspect that's not the complete contents of the file, otherwise there
would be little point in bothering with it.

As someone else pointed out, this sort of redirecting page usually does
some logging of the fact that the link has been clicked. That way they
know how many people clicked, say, an advert. This is important for
tracking click-throughs, on which a lot of marketing revenue is based.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top