CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/30/2003 12:27:53 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 8 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
9 Items, 1 Pages 1 |< << Go >> >|
klenne
Asp.Net User
Specify which sitemap to take for the SiteMapPath12/30/2003 12:27:53 PM

0/0

Hi

Is there a way to programmatically specify which sitemap the SiteMapPath control should take??

Before Whidbey i developed the same concept as the SiteMapPath myself. But here i had the possibility to specify the xml datasource at run-time. This is needed when you are in a multilingual site. It seems that in the Whidbey version you don't have any control about this.

Example:
Lets say mu site is in Dutch and in English. I need the SiteMapPath control to take the appEN.sitemap file when the user is English, otherwhise i have to take the Dutch version.

How can i specify which sitemap to take????

If this isn't possible, the control is completely useless!! :(
Regards
Fredrik N
Asp.Net User
Re: Specify which sitemap to take for the SiteMapPath12/30/2003 4:41:29 PM

0/0

You can create your own provider for the sitemap.


/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
kashif
Asp.Net User
Re: Specify which sitemap to take for the SiteMapPath12/31/2003 12:26:33 AM

0/0

Hi Klenne - you can register multiple providers in web config and then set the SiteMapProvider property for the sitemappath in code. The config would look something as follows
        <siteMap>

<providers>
<add name="siteMapXmlReader1"
type="System.Web.XmlSiteMapProvider, System.Web, ..."
siteMapFile="sitemap1.xml"
/>
<add name="nonDefault"
type="System.Web.XmlSiteMapProvider, System.Web, ..."
siteMapFile="sitemap2.xml"
/>
</providers>
</siteMap>


Hope that helps,
Kashif
klenne
Asp.Net User
Re: Specify which sitemap to take for the SiteMapPath1/2/2004 10:23:18 AM

0/0

cool!! thnx
tinghaoy
Asp.Net User
Re: Specify which sitemap to take for the SiteMapPath1/19/2004 6:30:14 PM

0/0

We are planning to provide localization supports for our sitemap config files, for example, you will be able to specify localized contents in your sitemap.config file like the following syntax (actual syntax might be different)

<SiteMapNode title="default title" fr:title="fr title" de:title="de title" />

However, you still won't be able to change the site structure, only node attributes can be changed. You will need to use different config file or providers if the structure can be changed based on localization.

HTH,
Ting-hao
This posting is provided "AS IS" with no warranties, and confers no rights.
PaulWilson
Asp.Net User
Re: Specify which sitemap to take for the SiteMapPath1/19/2004 8:26:25 PM

0/0

Why not support multiple sitemaps (but same structure is understood)
with the culture part of the filename or use culture-specific directories?
Having all languages in the same sitemap is going to be very awkward.

Thanks, Paul Wilson, ASPInsider, MC**

For the best .NET code, examples, and tools, visit:
WilsonDotNet.com, WilsonWebPortal.com, ORMapper.net
Fredrik N
Asp.Net User
Re: Specify which sitemap to take for the SiteMapPath1/19/2004 9:24:16 PM

0/0

I totally agree with Paul on this. We have tried a solution like this before with xml-files, if I remember correctly we couldn?t use a mixed of Polish, Swedish and Chinese characters even if we save the file in UTF-8.

/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
sschack
Asp.Net User
Re: Specify which sitemap to take for the SiteMapPath1/19/2004 10:04:20 PM

0/0

As Ting noted above the specific syntax for localizing site maps is still being discussed. We are looking at having the ability to externalize localized strings for site naviation into .resx files. This is more consistent with ensuring that ASP.NET sites are localizable overall.

So something like the following:

<siteMapNode
title="$ Resource: SiteMapLocalizations.HomePageTitle"
url="Home.aspx"
description="$ Resource: SiteMapLocalizations2.HomePageDescription, default description" />

would result in the title and description being resolved at runtime via the resource manager.



-Stefan
----------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Fredrik N
Asp.Net User
Re: Specify which sitemap to take for the SiteMapPath2/9/2004 2:28:35 PM

0/0

It's better. I hope you will also make it possible to add it to other server controls, e.g.

<asp:Button Text="$resource:PresseHere, Press here!" ToolTip="$resource:PressHereToolTip" ...>

I have implement a solution like this, that works with ASP.Net 1.1, and it works great.


/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
9 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
Professional ASP.NET 2.0 XML Authors: Thiru Thangarathinam, Pages: 566, Published: 2005
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Professional ASP.NET 2.0 Databases Authors: Thiru Thangarathinam, Pages: 504, Published: 2007
Professional Visual Studio 2005 Authors: Andrew Parsons, Nick Randolph, Pages: 869, Published: 2006
Beginning ASP.NET 2.0 in C# 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1148, Published: 2006
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007

Web:
Specify which sitemap to take for the SiteMapPath - ASP.NET Forums Specify which sitemap to take for the SiteMapPath. Last post 02-09-2004 9:28 AM by Fredrik N. 8 replies. Sort Posts: ...
Specify which sitemap to take for the SiteMapPath - ASP.NET Forums Specify which sitemap to take for the SiteMapPath ... Re: Specify which sitemap to take for the SiteMapPath ...
ASP.Net 2.0 error 'The Sitemappath 'Web.sitemap' cannot be found' Nov 16, 2005 ... Net 2.0 error 'The Sitemappath 'Web.sitemap' cannot be found' ... The answer is that you can not specify the web.sitemap in the data source ...
How to: Customize the Appearance of SiteMapPath Web Server Controls Specify the number of parent links that are displayed. ... assume that you have already created a site map and a page that contains a SiteMapPath control. ...
Ease Web site navigation by implementing ASP.NET's SiteMapPath ... The SiteMapPath control also displays the pages in the site map between the root ... PathLevelsDisplayed: Allows you to specify the number of levels of the ...
Jeff Prosise's Blog : Hiding the Root Node from SiteMapPath 2) I'm trying to avoid having to specify all those access control settings in the ... I have a treeview and a sitemappath that both draw from a Web.sitemap. ...
SiteMapPath.SiteMapProvider Property Use the SiteMapProvider property to specify or determine the name of a ... the SiteMapPath control uses the provider identified by the SiteMap. ...
Inside Microsoft: Site Maps In ASP.NET 2.0: A Primer With a site map in place lets take a first pass at wiring up some navigation controls. ... You will also drag a SiteMapPath control onto the form. ...
Asp.Net Tips & Tricks: May 2008 Master Page for the application Now add the master page in your project and then drag and drop the SiteMapPath control.like this, ...
ASP.NET.4GuysFromRolla.com: Examining ASP.NET 2.0's Site ... Feb 1, 2006 ... NET's site navigation feature is to allow a developer to specify a site map that describes his website's logical structure. ...




Search This Site:










publish a website

menus (solpart) and citrix remote

whose online problem

web user controls and a font property

creating customer contorls properties and events

accessing view state at client side

webpart not showing minimize and close links

how to add " | " seperator into horizontal menu

accessing the profile from the createuserwizard is unclear

wrote my own profile manager, now i'm having troubles deleting the accounts.

membership with sql server 2000

translation of the createuserwizard

optimize ado.net performance issue!

user.indentity.name reports previous account name for renamed ad user

problems with temporary asp.net-files in vs2005 wap project.

installing a language pack

nina's dnn skinningmagic tutorial

to remove the return url property

masterpages in adobe contribute

adding styles to html table cells in code behind

automatically logging in to dnn from another non-dnn site

edit container

adding new web user control

why does redirectfromloginpage doesn't bring me to default.aspx

3.0.8 issue can't use chinese characters as tabname

using email as the username

how to display an image

contentholder in master pages

how to deal include files in asp, during migration ?

reached a milestone

 
All Times Are GMT