1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Url Redirection In ASP

Discussion in 'C#' started by LiverpoolYNWA, Apr 16, 2011.

  1. #1
    can anyone provide me any reference or code to redirect links in ASP.
    SEMrush
     
    LiverpoolYNWA, Apr 16, 2011 IP
    SEMrush
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,681
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Classic or .Net? Which version of IIS?

    If your wanting to do redirecting (ie 301 etc) then it can be done using the global.asa(x) file or with a http module.

    If your actually wanting rewriting then with later version of IIS you can do it in the web.config file
     
    AstarothSolutions, Apr 16, 2011 IP
  3. Deu

    Deu Peon

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #3
    ASP.NET = Response.Redirect("YourNewPageNameOrURL")
    ASP Classic = Response.AddHeader "Location","YourPageNameOrURL"
     
    Deu, Apr 17, 2011 IP
  4. alok.kumar

    alok.kumar Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ASP.NET provides the following ways for you to build redirection into your Web pages:

    Using hyperlinks on pages.

    Configuring cross-page posting, which enables you to specify an alternate target page when the current page is submitted.

    Redirecting programmatically by forcing the browser to request a different page.

    Redirecting programmatically by transferring control to a different page in the same Web application.
     
    alok.kumar, May 3, 2011 IP
  5. smith498

    smith498 Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am trying to do something very simple via a ASP script but can't figure out how to do it.

    Whenever a user goes our our website eg. (Unfortunately this forum won't allow posting of HTTP links) but essentially :

    sitea/scripts/script?Adata=xxx), I want it recirected to

    siteb/script?Adata=xxx

    I can do the simple direct via an REDIR.ASP script that only seems to work for URLs without any script data in them. I was told that the GLOBAL.ASA file could be used to take any URL (script data in the URL or otherwise) and used to redirect to another URL. Does anyone know how to do this?

    Any help would be appreciated.
     
    smith498, May 14, 2011 IP