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/7/2007 6:40:56 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 12 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
RashmiSingh
Asp.Net User
How to pass array in place of string title in SiteMapNode with StaticSiteMapProvider12/7/2007 6:40:56 AM

0/0

Hi All,

I have created my custom sitemap using staticSiteMapProvider. It is working properly. But now I have to make some enhancement in it. Actually my project supports multiple languages, for instance german and english. So I have to pass array of languageid and node title for both the languages inside SiteMapNode, while creating node.

Currently it is like below

SiteMapNode node = new SiteMapNode(this,             
                                                           nodeId.ToString(),
                                                           url,                
                                                           title,               // Node display name
                                                           description);

Can someone please help me how can I pass array of title for both languages in above code snippet?

If any other way is there to implement that, please let me know. Basically have to maintain a single siteMap for all the supported languages in the project.

 

Thanks.

 

 

 

aiodintsov
Asp.Net User
Re: How to pass array in place of string title in SiteMapNode with StaticSiteMapProvider12/7/2007 6:48:40 PM

0/0

the correct way is localizing menu.

it's done through global or local resources and adding the enableLocalization="true" to <siteMap ... > node of sitemap file (sample for global resources):

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" enableLocalization="true" >
  <siteMapNode url="~/Default.aspx" title="$resources:Menu,mmHome" description="">
    <siteMapNode url="~/About.aspx" title="$resources:Menu,mmAbout" description="" />
    <siteMapNode url="~/Services" title="$resources:Menu,mmServices" description="">
    </siteMapNode>
  </siteMapNode>
</siteMap>

 also you will need to have files like Menu.resx, Menu.fr.resx, Menu.de.resx and so on for each language. 

 

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
How to pass array in place of string title in SiteMapNode with ... How to pass array in place of string title in SiteMapNode with StaticSiteMapProvider. Last post 12-07-2007 1:48 PM by aiodintsov. 1 replies. Sort Posts: ...
using System; using System.Collections.Generic; using System ... string title = parentNode == null ? "Home" : Path.GetFileName(directory);. SiteMapNode node = new SiteMapNode(this, url, url, title);. // set the root ...
Site Map Providers Providers that derive from StaticSiteMapProvider require considerably less .... The key code is contained in the get accessors for SiteMapNode's Title and ...
Site Map Providers SiteMapNode properties such as Title, Url, ParentNode, and ChildNodes define the ..... turn the list into a string array string[] rolelist = null; if (! ...
.NET ASP.NET Issue with Jeff's SqlSiteMapProvider Sep 5, 2008 ... Close() End Try ' Return the root SiteMapNode Return _root End ... into a string array Dim rolelist As String() = Nothing If Not [String]. ...
Duvida SqlSiteMapProvider If roles were specified, turn the list into a string array ... SiteMapNode node = new SiteMapNode(this, id.ToString(), url, title, description, rolelist, ...
Sanjay - Tuesday, August 07, 2007 Entries Aug 7, 2007 ... Inherits StaticSiteMapProvider. Private Const _errmsg1 As String = "Missing ..... Dim node As New SiteMapNode(Me, id.ToString(), url, title ...
SiteMapProvder Only Providing the first node - ASP.NET Forums If roles were specified, turn the list into a string array ... Dim node As New SiteMapNode(Me, id.ToString(), url, title, _ ...
Maarten Balliauw {blog} - Software Set the other properties on the sitemapnode, // these are for title and ..... Let's say you have a mixed array containing Employee objects and some other ...
Maarten Balliauw {blog} - ASP.NET, OpenXML, PHP, Visual Studio ... The passed in value might also be an array of strings, so make sure to verify ..... Set the other properties on the sitemapnode, // these are for title and ...




Search This Site:










godaddy database connect example?

classicaspguy needs to create multiple secure asp.net 2.0 websites in one domain

links on the same page

grant access

no data

whitepaper download module

dnn shopping cart commerce modules?

dnn 3.2.1 uploaded container does not appear in the container menu of a module

customizing the album creation to work from fotovision smart app

sql licensing with portal

slowness of 2008 ?

using solpart menu in datagrid

personalization of webparts with app_data\aspnetdb.mdf or sql server 2005;

website alias doesnt work?

using my custom module with aspx page

custom permission like moderator in forum?

error parsing control: a related uri cannot be created because the uri string parameter represents an absolute uri.-what does this mean????

importing content to a text/html module

setting the height and width of webcontrols etc....?

3.0.12 installing custom modules doesn't work plan b

deleting complex profiles

build custom security database or use authentication web interface

remove() method doesn't work

why are the webcontrols no longer supported?

.netship and catalook

first chance exceptions

sample code needed to view

unable to open the web 'http://xyz:6548". could not find a web server at 'xyz'

where is the end of shaun walker's tutorial on dnn 4 starter kit ?

3.2, can't add modules: viewstate error

 
All Times Are GMT