473,513 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query Strings and SiteMapPath

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
Jan 1 '07 #1
0 1347

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2579
by: Robert Camsky | last post by:
Hi, I've got web.sitemap file with few nodes and subnodes and SiteMapPath control. It works fine. But imagine, I'm worrking on an calender implemented this way: calendar.aspx -> showing...
1
3083
by: Danial | last post by:
Hi, How can I bind sitemappath (breadcrumb control of asp.net) to a custom ..sitemap file? By defualt its looking for web.sitemap file and giving me not found exception. Thanks Danial
1
4513
by: Jules | last post by:
In a ASP.NET 2.0 project I'd like to set an image as path separator in the SiteMapPath. When I edit the PathSepartor template (for this SiteMapPath) and drag an image on it, it works fine for all...
5
3205
by: Jon via DotNetMonster.com | last post by:
Hi all, I'm using the ASP.NET sitemappath control and the ASP.NET menu control This sitemappath control works and shows the path when the page doesn't have an anchor - for example: ...
0
1327
by: news.sbcglobal.net | last post by:
Hi. I was wondering if someone could tell me how to set SiteMapPath control styles in a .skin file. I've tried this (see below) but it doesn't work: <asp:SiteMapPath runat="server"...
3
4440
by: Uriah Piddle | last post by:
Hi Gang, I have a SiteMapPath, bound to a Site Map, that traces a hierarchy down to an 'Article' leaf node. But the Article page shows one of many individual articles depending on which article...
1
2457
by: Alec MacLean | last post by:
Hi. I'm using VS2005 Pro to work on a website project for my company. The site has several navigation elements, all based on the standard VS2005 navigation components. I have high-level...
1
2368
by: =?Utf-8?B?bWljaGFlbHJp?= | last post by:
We are dynamically changing the title property of nodes in our sitemappath to reflect the names of products by handling the SiteMapResolve event. We have some unicode characters in our product...
0
1528
by: =?Utf-8?B?TWFoZXNoIE5pbWJhbGthcg==?= | last post by:
Hi All, I am using WCSF in my application. I have Menu control and SiteMapPath, which are consuming SiteMapDataSource source provided by WCSF. Now I have Report Details page that is not...
0
7161
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7101
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5089
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.