473,699 Members | 2,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URL rewriting doesnt seem to work with xml sitemap provider and menus

Im building a mutli-lingual website in .net 2.0 and Im having an issue
with url rewriting and Im having an issue with the xml sitemap provider
and menus. If i have a url:
http://mysite.com/articles.aspx
and then change the local to ru-Ru for instance:
http://mysite.com/ru-Ru/articles.aspx

all the menus still point to the http://mysite.com/articles.aspx link
which puts the local back to english. This happens even if I use just
the page name "articles.a spx" in the url field in the site map
provider.

Does anyone know a way around this? such as a setting that can be
changed?

Cheers

Sep 3 '06 #1
1 1372
Hi

This is because it gets reset by the page intializecultur e() call.
You need to :
Create a basepage class and overide the intialiazecultu re() function in it,
to set the culture based on a saved cookie or session variable, this class
would also need to inherit the web.ui.page class- you will see at the top of
your page code it inherits this class, replace it with your new class. (
your new class would inherit this web.ui.page class )
I hope that makes sense.


"Ryan" wrote:
Im building a mutli-lingual website in .net 2.0 and Im having an issue
with url rewriting and Im having an issue with the xml sitemap provider
and menus. If i have a url:
http://mysite.com/articles.aspx
and then change the local to ru-Ru for instance:
http://mysite.com/ru-Ru/articles.aspx

all the menus still point to the http://mysite.com/articles.aspx link
which puts the local back to english. This happens even if I use just
the page name "articles.a spx" in the url field in the site map
provider.

Does anyone know a way around this? such as a setting that can be
changed?

Cheers

Sep 20 '06 #2

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

Similar topics

2
2033
by: -D- | last post by:
I'm taking my first stab at using xml, so please bear with my novice questions and understanding of xml. I'm trying to create an xml file that holds all my website navigation. If I understand correctly, I can use xslt to create different menus from the xml file. What I'm trying to accomplish is to create a top menu bar, left navigation menu bar and sub header navigation bar. Then place the transformed xslt menus into user controls...
1
4993
by: Jakob Lithner | last post by:
When I started a new ASP project I was eager to use the login facilities offered in Framework 2.0/VS 2005. I wanted: - A custom principal that could hold my integer UserID from the database - An easy way to classify different pages as either Admin, Member or Public, where login is necessary for Admin and Member but not for Public. My idea was to put the pages in different directories to easily keep my order. - An easy menu system that...
1
2483
by: AmitKu | last post by:
Here is my situation. I have two sitemaps registered, A and B, where A is used by my default provider. When I do Sitemap.CurrentNode it operates w/ respect to the default provider. However, I want to do some fun programmatic stuff with SiteMap.CurrentNode, with regards to sitemap B on a certain page. How can I specify that when I say SiteMap.CurrentNode I want it to talk to me with respect to my non default sitemap provider?
3
5735
by: Anders | last post by:
Hello, i have created a custom sitemap datasource. The sitemap gets all pages from a collection from a CMS system (not directly from a database). I have declared my sitemap provider as default in web.config. In the pages I have a sitemap datasource and corresponding menus. Question: - Where is the data cached? - How can I release it from the cache and refresh the data?
0
8686
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
9173
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
9033
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8911
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7748
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
6533
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
5872
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.