Tuesday, March 13, 2012

SiteMapPath Navigation

Hi,
What is the best way to store/retrieve query strings for pages when the user
is navigating backwards using the SiteMapPath control?
Thanks.
Stevehi steve,
you can always refer to the Request.UrlReferrer.Query
this value is lost in postbacks, because the referrer becomes itself after a
postback to itself, but it's very easy to build a derived Page class that
persists the referrer across postbacks. you can use this across your whole
site then to have reliable access to the page referrer.
hth
tim
"Uriah Piddle" <stephenprescott@.msn.com> wrote in message
news:OXk2N%23YOHHA.4172@.TK2MSFTNGP03.phx.gbl...
> Hi,
> What is the best way to store/retrieve query strings for pages when the
> user is navigating backwards using the SiteMapPath control?
> Thanks.
> Steve
>
Thanks Tim. I'm working on an implementation of your recommendation.
"Tim Mackey" <tim.mackey@.community.nospam> wrote in message
news:57F8A9D0-5265-4A02-B4E8-4B39240327C0@.microsoft.com...
> hi steve,
> you can always refer to the Request.UrlReferrer.Query
> this value is lost in postbacks, because the referrer becomes itself after
> a postback to itself, but it's very easy to build a derived Page class
> that persists the referrer across postbacks. you can use this across your
> whole site then to have reliable access to the page referrer.
> hth
> tim
> "Uriah Piddle" <stephenprescott@.msn.com> wrote in message
> news:OXk2N%23YOHHA.4172@.TK2MSFTNGP03.phx.gbl...
>

0 comments:

Post a Comment