SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2001
    Location
    Houston
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is it Possible to Post Data with Response.Redirect?

    I need to transfer some data from one .asp page to another when I do a redirection. I was wondering if there are any other options besides:
    1) adding data to querystring and redirecting to that URL; or
    2) creating a cookie, storing the data there, redirecting to new page and accessing data in cookie

    Is there any other work around? I've looked a bit at Response.AddHeader but I don't think it's what I'm looking for.

    I'd like to pass the data without putting it in the querystring and without relying on cookies. Thoughts?

  2. #2
    \m/ R.I.P. Dimebag! \m/ JimBolla's Avatar
    Join Date
    Dec 2001
    Location
    erie, pa
    Posts
    1,130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Response.Redirect works as such...

    1. ASP page sends a "Redirect" status code back to the client's browser, along w/ a URL to redirect to. (Code 302 I think)
    2. User's browser sends a GET for that URL.
    3. Page is processed by server.

    There's no way to modify this process to make it do a POST command. Instead maybe you want to look into using Server.Transfer or Server.Execute.
    -- JIM BOLLA
    Wanna play Halo 2? My XBOX Live gamertag: crowdozer

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2001
    Location
    Houston
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    crowdozer-

    You're right, I'll take a look.

    Have you ever done something along the lines of what I'm trying to do?

  4. #4
    SitePoint Zealot
    Join Date
    Jul 2001
    Location
    Houston
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    RTFM, RTFM, RTFM. Please tell me that because I deserve it.

    Server.Transfer works beautifully.

  5. #5
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,277
    Mentioned
    120 Post(s)
    Tagged
    1 Thread(s)
    Originally posted by writhe
    RTFM, RTFM, RTFM. Please tell me that because I deserve it.

    Server.Transfer works beautifully.
    M@rco would be so proud!!!!
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style
    Learn how to be ready for The Forums' Move to Discourse


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •