Error retreiving encode Request data

Rate It (1)

Last post 05-10-2008 6:23 AM by DigiMortal. 1 replies.

Sort Posts:

  • Error retreiving encode Request data

    05-09-2008, 7:33 AM

    Hi all,

    I've got 2 url with encoded Request query string like this (inside the Response.Redirect)

    case1: Response.Redirect("~/Test.aspx?data=zDnhmY053IgBL9paRQjcNwgWotRcA1lB4f9NnHcLPO7vPH9rSqO%2bEd%2fk0kAgvOJH0Wy6F%2bA%2b43oj2%2bbce82beu8qdqmrrMX2pHCB9gwzVDCuFddCfw8Q%2bvB3qh%2f2D%2fkB%2bzYwhDwU4w6MdXMx5Un8onulz4%2fYP78J3FhZZsfYThqgj28JGdbbVJ8vx2nlybpDVqShY8Zlxx6E%2b1JQeReTibR%2f9CyQlAnEEMUVDRa4nuCrb0DYZ1JIoiMn4ab%2bNaTukKY3zJxBw43U6rh4dWyeRSglWagw49e28hPJpe4RSdzoyo7YcNM3zl8kBYe0OgOay3Nk4Lmyb4MZvyDbWscSPcwHnhurgSik3o%2bzyyJdhLRK%2bZIMuNZLr7FJ5tRZj%2f64DVD2%2frvzUMg%3d");

    case2: Response.Redirect("~/Test.aspx?data=zDnhmY053Ig65ZxVVhgrbAZoG%2fKgflXufQTW7k0gdeppq7hq27Km3T4foh56sQyvVo%2biXKuw5p%2fqjqPatdeB9klaW8%2byJ5RIXrHTw%2fps2FD12jWebGx9njBZt8pXiSsnPET17yXNGPx5SqKap8ATvc0whCe1qZDACpa13fFzrIo%3d");

    in side the code of the destination page (say Test.aspx), i retreive the "data" as in normal way like this:

    string QueryData=Request["data"]

     

    with case2, after decode the QueryData, i have the correct data i need (same as before i encode)

    with case1, the decoded data is missing (these 2 cases use the same funtion to encode the data)

    I know i can't hope to have the correct answer for this issue, but i hope if anyone could tell me the most occured reason of this

    thanks

  • Re: Error retreiving encode Request data

    05-10-2008, 6:23 AM
    Answer
    • Loading...
    • DigiMortal
    • Joined on 01-10-2007, 7:22 PM
    • Tallinn, Estonia
    • Posts 308
    When decoded data is missing, you can check request headers. Check out what is URL that browser is asking. Also make sure you don't have any complex and hardly controllable logic behind redirects.
    Don't forget to mark solution providing post as "Answered".
    It helps others to find correct solutions!

    Also visit my ASP.NET blog!
Page 1 of 1 (2 items)