C# - Localize The Url For A Sitemap?

Jun 4, 2010

I have 2 links, one english one spanish. is there anyway i can localize that in .net? I was thinking of using sitemap

View 1 Replies


Similar Messages:

Web Forms :: Parser Error Message - XML Sitemap Config File Web.sitemap Could Not Be Loaded

May 11, 2010

We are getting this error message when we try to click the link in the menu to go to Report Server:

Source Error:
Line 31: <siteMapNode title="Reports" description="Reports">
Line 32:
Line 33: <siteMapNode url="https://ffxsqldgc01.ffx.co.fairfax.va.us/Reports/Pages/Folder.aspx?ItemPath=%2fDPZ&ViewMode=List" title="View Reports"
description="Click here to view the reports" />
Line 34: </siteMapNode>
Line 35:

I tried to add after the &, as it was suggested on one of the forum but it did not work. Any other ideas.

View 5 Replies

Sitemap Randomly Breaks Over Time / Could Not Find The Sitemap Node With URL '~/Default.aspx'

Aug 2, 2010

I've been having some production runtime errors that I don't fully understand. This has happened to us on a couple different ASP.NET 4.0 Web Sites (shudders - yes, I know - we're porting it to MVC but that's taking some time).

First of all, we have never been able to reproduce this issue in development/QA environments. Secondly, upon deployment, the issue seems to be non-existent. Sometimes the issue manifests within a day or two of deployment and other times the deployment will be live for a month without it manifesting at all. However, once it manifests, then ANY page viewed under the web site causes the error. Lastly, this problem seemed to only come up once we migrated to .NET 4.0. We started at 2.0, a year ago upped to 3.5, and recently upped to 4.0 with this solution and most child projects.

The error:

Could not find the sitemap node with URL '~/Default.aspx'.

A simplified version of our sitemap (with some names changed and uninteresting nodes removed) is as follows:

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode roles="*" title="EG">
<siteMapNode url="~/../SM/Default.aspx" title="Welcome" description="" roles="*" />
<siteMapNode url="~/../SD/Default.aspx" title="SD" description="" roles="*" />
<siteMapNode url="~/../SMD/Default.aspx" title="SMD" description="" roles="*" />

[code]...

I have confirmed in all of the SiteMaps that there is a node with url="~/Default.aspx" with roles="*" (which includes public/anonymous access), so I am very confused as to why this problem occurs.

SiteMap does not have a node for Default.aspx. All of them do. SiteMap's Default.aspx node is not accessible for security reasons to the current user/role. They're all accessible to anonymous users and this problem even exists for super admin users. Passed-in URL contains querystrings (Default.aspx?abcd). I don't know if this is a problem (I sure would hope not) but once the problem manifests itself, I can handwrite the URL with no querystrings and the problem still exists.

SiteMap changes. It doesn't Service's permissions to the sitemap file. The sitemap works perfectly fine after a deployment, so unless permissions are changed in a way that IISRESET fixes, then this is not an issue. The worker process becomes globally corrupt. I don't think so. We have ~12 web sites all in the same app pool and the problem always stays confined within a single web site. Also, we have yet to have this happen to more than a single web site at a time although it has manifested itself in 4 different ones so far.

View 1 Replies

SiteMap Change SiteMapProvider / Create Multiple Web.sitemap Files?

Jan 25, 2011

I've got a custom menu navigation built from a web.sitemap file, the first line of this would be something like:

SiteMapNodeCollection topLevelNodes = SiteMap.RootNode.ChildNodes;

However, now I want to be able to create multiple web.sitemap files, and then programmatically determine which web.sitemap file to use, but I can't seem to find out how to do this. I'm assuming I could either create one custom SiteMapProvider that can perform the logic to determine which web.sitemap file to load, or I have multiple providers, each one with the SiteMapFile property set to a specific *.sitemap file, and then switch providers programmatically before I access SiteMap.RootNode.

View 2 Replies

C# - How To Get The Name Of Sitemap File From Sitemap Provider

Oct 6, 2010

I am creating a CacheDependency on the file that my SiteMap provider uses. I would like to get the name of the file from my sitemap provider instead of hard coding it. Is there a way?

Edit

Duh, I forgot to mention: XmlSiteMapProvider that comes with ASP.NET

Edit 2

Reflector shows a private member field called _filename that isn't exposed in any way as far as I can tell.

View 1 Replies

Web Forms :: Programmatically Reference .sitemap File That Isn't The Root Web.sitemap File?

Nov 4, 2010

How would I programatically reference a .sitemap file that is not the root web.sitemap file? I have a file called research.sitemap in a folder a level under root. I want to refernce this file in my code behind like his: SiteMapNode m1 = SiteMap.RootNode (but since this isnt web.sitemap in the root, I dont know how to get access to it).

View 1 Replies

Web Forms :: Sitemap Node - Seond Line Of Sitemap Node Won't Indent?

Mar 25, 2010

I have a second level node that goes onto two lines. The first line indents 15px as is set by the class for node level 2. The seond line kicks back to the same level as 1st level nodes. Here's what I mean:

Parent Node

Second node

line 2 of second node

I want it to be like this:

Parent Node

Second Node

line 2 of second node

View 4 Replies

MVC :: To Localize A URL / Routing In .NET

Oct 14, 2010

I'm working with a client that wants the URLs in our web application to be in French. I'm an English developer and we also have English clients. This is an interesting problem is there something int the ASP.NET MVC Framework that would enable me to do this?

Here's the scenario. The route...

Specific EXAMPLE English URL
www.stackoverflow.com/questions/ask

So in MVC my Area, Controller and Actions all need to have both English and French translations.Obviously maintainability would be a HUGE issue if I were to go and hardcode all my Controllers, Views and Action names to French. Is there anyway to localize the route that is presented in the browser without doing this? Keeping in mind there are lots of different routes in the application. A couple Areas each with a handful of Controller each with many Actions?

Note this message is also on SO: http://stackoverflow.com/questions/3935768/is-it-possible-to-localize-a-url-routing-in-asp-net-mvc

View 3 Replies

Localize At Any Page?

Sep 28, 2010

http://mydomain/browseproduct?ProID=17 (show all product in category 17 in English language), i click icon to change our website languge to French, i want to still stand at
http://mydomain/browseproduct?ProID=17, but i can not, after i click change language icon it redirect tohttp://mydomain/browseproduct page, no query parameter. In my code i use

Response.Redirect(Request.Url.LocalPath);

View 1 Replies

Use Tools Like Localize Substitution?

Sep 1, 2010

How to use tools like localize substitution?

View 1 Replies

C# - How To Localize DataTable Column Name

Feb 27, 2010

This is my datatable

[Code]....

I want to localize the columns names. Can you tell me how can I do this? I localized my .aspx pages, but I don't know how to localize the text in .cs files.

View 1 Replies

Website - How To Localize New Posts In .net

Mar 14, 2011

I am doing my final year project and have decided to make a website in asp.net. For that I'll be using Micrsoft Visual Studio 2008. I'm making a Real ESTATE properties website. I want to know how to localize or create new posts in asp.net( like in WORDPRESS) and also when I hit SEARCH it should search for the desired keyword or the searched post.

If post is not possible then it should display pages...

View 1 Replies

How To Use And/or Localize DisplayAttribute With .NET MVC2

Mar 25, 2010

I am trying to figure out how to get the DisplayAttribute in my MVC 2 ViewModel to work with the Html.LabelFor() helper.

Neither

public class TestModel
{
[Display(ResourceType = typeof(Localization.Labels))][code]...seem to work. Localizing the Required Attribute works as expected:

[Required(ErrorMessageResourceName = "Test", ErrorMessageResourceType = typeof(Localization.Labels))]


I am using VS2010 RC. Has anybody got that running?

View 3 Replies

Localization - .NET: Why Localize Strings

Nov 9, 2010

I'm just getting started using Resharper with VS-2008, and one of the 'errors' it gave me was to localize a Label's text in the code-behind. I've worked with Localization before to Localize a website from english into french, but I don't understand what the benefit is to localizing beside that usage.

View 2 Replies

Javascript - Localize Calendar Component Of YUI?

Sep 2, 2010

I have a question about YUI. I am using YUI calendar component in my website project. I insert the codes inside ASP as javascript. (like that [URL]) Now, i am about to hearing your questions, i am answering them immediately. Yes, this link explains how lo localize YUI calendar, but, it does not work for me. Because, it is static. I want to localize it dynamically. It should depend on user's browser language. For example, if the user's browser language is Deutsch, it is supposed to display 'samstag', if it is English, it is supposed to display 'saturday'.

View 2 Replies

How To Localize Membership Provider In WPF Application

May 10, 2010

We are using ASP.Net Membership provider for user management module in our WPF based application. It seems to be working fine. But now we want to localize our WPF application, and don't know how to do that with respect to the data stored as part of Membership Provider. Is Localization supported by Membership Provider ?

View 2 Replies

Localization :: How To Localize Static Text

Jul 7, 2010

Below is static text in some aspx file.How to localize static text in asp.net.I have to use frameowrk 4.0 and vs 2010.There is lot of static text in <p> or <br> tag.?can you explain me how to localize this static text using app_local resource file.I tried with literal and localize control but can anyone explain me how to convert following text.

[Code]....

View 1 Replies

Localize Default Model Validation In Mvc 2?

Jul 1, 2010

[Required]
[DisplayName("my date")]
public DateTime? DateReg { get; set; }

so if the user is going to pass in an invalid datetime value he will get this message "The value '02.07.201022' is not valid for my date."

View 1 Replies

How To Localize WebParts Attributes Within The PropertyEditorPart

Oct 19, 2010

Is there any way to localize the text displayed within the PropertyEditorPart?

[Personalizable(true),
WebBrowsable(true),
WebDisplayName("To Date: "),[code]....

View 1 Replies

MVC :: Localize The Text Of DisplayName Attribute?

Jan 14, 2010

i would localize the text of DisplayName attribute: i know that at the moment is not possible (i hope that the next version of mvc will do it automatically) so i tried to search how to do it and i found this link:

LINK TO BLOG'S POST

but i didn't understand how to finish the lookup function.

View 1 Replies

Globalize/Localize Excel Reports Using Spreadsheet?

May 28, 2010

My company has new customers in Brazil and we realized that our excel reports are not working when our Brazilian customers tried to open the reports in their Brazilian versions of excel.

For excel output we use spreadsheet gear in our vb.net web application. Our excel worksheets are fairly simple. Mostly outputted text/numbers/dates, a couple of formulas (sum, if) and formatting on the currency and dates.

I've tried several methods to get my excel reports to work: First I left the excel workbook in the "en-US" culture and tried simply chaging the number format for Brazil to:

_-[$R$-416] * #.##0,00_-;-[$R$-416] * #.##0,00_-;_-[$R$-416] * "-"??_-;_-@_-

And this formatted the regular cells but the formulas still failed to show a value. Instead they showed a 0 value.

Next I tried changing the workbook to the "pt-BR" culture and that also forced me to translate the formula names (Sum -> Soma, If -> Se) but they still wouldn't should a value and instead showed a #Name/#Nome error. Interestingly enough the formulas would work if I edited the cell and hit enter. The formula wouldn't change but it would some how fix that cell.

I need to be able to out excel reports that can format dates/currencies and apply simple formulas (IF, Sum) for other excel cultures.

View 1 Replies

MVC :: How To Localize Ajax Control Toolkit Calendar

Jan 10, 2010

how can I localize calendar in Ajax Control Toolkit? In Web Forms it is easy, I would just set EnableScriptGlobalization to true on ScriptManager, but in MVC I don`t have this server side support.

View 2 Replies

How To Localize HeaderText In GridView Or Validation Controls

Jun 6, 2010

I cannot figure out why HeaderText or validation controls always fallback to default culture - even though rest of the controls are in correct culture.

I have a GridView with HeaderText specified in this way>

<asp:BoundField DataField="totalSales" HeaderText="<%$ Resources:Strings,TotalSales %>" />

In the same way I have validation controls and they can't be localized.

Only this syntax does work: <%= Resources.Strings.Payments %>

I set different culture in Master page using this statement in Page_Init

Me.Page.Culture = "pl-PL"
Me.Page.UICulture = "pl-PL"

View 1 Replies

Localization :: How To Localize Or Globalize Static Text

Jul 8, 2010

How to Localize or globalize static text within <br> ,<span>,<strong> ,<p> using app_local resource file and can you even explain me how to localize

numeric value within <span> or <strong > text.I have some even some text like <strong>1</strong>

Here is some sample text:

[code]....

View 1 Replies

How To Localize A Non Embedded Javascript File With Resource

Sep 3, 2010

I have a question about javascript. In my project, there are embedded and non-embedded javascript codes. And i did localization of the embedded codes like below and it works.

CN.DEFAULT_CONFIG = {
strings : {
year: '<%=GetGlobalResourceObject("Resource", "YEAR") %>'

But, this method does not work for non-embedded javascript codes. How can i do localization for them?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved