Get Request.UrlReferrer

2 posts, 0 answers
  1. solutionfactory
    solutionfactory avatar
    45 posts
    Member since:
    Apr 2007

    Posted 04 Jun 2008 Link to this post

    Hi all,
    I have a page (A) that uses a Response.Redirect method to redirect to a second page (B). On page B in the page load I have code that sets a viewstate to Request.UrlReferrer.ToString().
    The page errors out on load with a "Object reference not set to an instance of the object" error.
    I assume it has to do with the redirect using the AspNet Ajax on page A.
    Any ideas on how to fix this so I can use UrlReferrer?

    Thanks in andvance

    Best regards,
    Flavio
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 Jun 2008 Link to this post

    Hello fcometto,

    This is "inherited" by ASP.NET AJAX and it seems that is not supported. More info is available in this forum thread.

    Regards,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top