473,670 Members | 2,389 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 1355

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

Similar topics

4
2594
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 upcomming events calendar.apsx?year=2005 showing calendar for year 2005 calendar.apsx?year=2005&month=1 showing january in 2005 calendar.aspx?year=2005&month=1&day=1 showing 1/1/2005
1
3086
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
4515
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 pages in the root of the Web project. VS2005 creates the folling aspx: <asp:SiteMapPath ID="SiteMapPath" runat="server"> <PathSeparatorTemplate> <img src="Images/arrow-right.jpg" /> </PathSeparatorTemplate> </asp:SiteMapPath>
5
3208
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: <siteMapNode title="annual report" description="Annual report" url="Pages/ir_annuals.aspx" /> but the sitemappath control doesn't show the path if the page has the url
0
1330
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" PathSeparator=" | "> <PathSeparatorStyle Font-Bold="true" Font-Names="Verdana" /> </asp:SiteMapPath> I'd like to set many other properties as well so that I don't have to configure the styles on each page but I can't find any examples online to show how...
3
4446
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 the user chooses in the Articles page. The way it is set up now, if the user selects a particular article in the 'Articles' page, the SiteMap looks like this: '. . . Articles Article'. Assuming the user choses a cookie baking article, I would like...
1
2467
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 section navigation provided via a horizontal menu, a SiteMapPath to provide a breadcrumb and a vertical menu component on the left edge.
1
2373
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 names, stored in our db using escape characters like: "è" When we set the SiteMapNode.Title to that value it is escaped by the sitemappath to "è" which results in the ampsand and code being printed out vs the desired character of: è
0
1543
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 directly accessible to user. User must come to this page from other page. So I have not registered this page in RegisterSiteMapInformation function of module initializer so that it will not show in Menu.
0
8469
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8903
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7419
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6213
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4391
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2800
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 we have to send another system
2
2042
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.