Click here to Skip to main content
15,886,199 members
Articles / Web Development / ASP.NET

Routing a Localized ASP.NET MVC Application

Rate me:
Please Sign up or sign in to vote.
4.43/5 (7 votes)
26 Aug 2010CPOL4 min read 68.2K   1.2K   19  
How to use URL to create a localized ASP.NET MVC application
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <%=this.GetLocalResourceObject("Homepage") %>
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <%=this.GetLocalResourceObject("Hello") %>
    </p>
    <p>
      <%=this.GetLocalResourceObject("SwitchTo") %>: <a href="/Home.aspx">English</a> - <a href="/vi-VN/Home.aspx">Việt Nam</a>
    </p>
</asp:Content>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer GrapeCity
Vietnam Vietnam
MCP, MCAD, MCSD, MCTS for Windows Form, MCTS for Web

You can reach me at qFotoEfex


Comments and Discussions