U
Uriah Piddle
Hi Gang,
In my ASP.NET 2.0 project, I have several pages that require a query string
and I have code that redirects if it is not both found and valid. This has
caused problems with the SiteMapPath because when the user navigates
backwards with it, the query string is not there. I researched this and
wrote code that handles the SiteMapResolve event and puts the query string
in the appropriate node. Then I ran into two things:
1. When you fix the site map node with the query string, the query string in
the Page object is not updated and my code still redirects. I still need to
redirect if there is no query string. How do you determine this if it is not
in the Page object?
2. Fixing the SiteMapPath node with the query string does not seem to make
any difference. If I comment that fixing code out, backward navigation still
works fine. I'm assuming that the query string is kept in ViewState or
ControlState and that handling the SiteMapResolve event is unnecessary (even
though MS docs say that you should write the code I referenced). Am I right
on this or have I missed something?
Thanks and Happy New Year to all.
Steve
In my ASP.NET 2.0 project, I have several pages that require a query string
and I have code that redirects if it is not both found and valid. This has
caused problems with the SiteMapPath because when the user navigates
backwards with it, the query string is not there. I researched this and
wrote code that handles the SiteMapResolve event and puts the query string
in the appropriate node. Then I ran into two things:
1. When you fix the site map node with the query string, the query string in
the Page object is not updated and my code still redirects. I still need to
redirect if there is no query string. How do you determine this if it is not
in the Page object?
2. Fixing the SiteMapPath node with the query string does not seem to make
any difference. If I comment that fixing code out, backward navigation still
works fine. I'm assuming that the query string is kept in ViewState or
ControlState and that handling the SiteMapResolve event is unnecessary (even
though MS docs say that you should write the code I referenced). Am I right
on this or have I missed something?
Thanks and Happy New Year to all.
Steve