Localization of the ASP.NET login control

Discussion in 'ASP .Net Web Controls' started by Martin Bischoff, Aug 15, 2006.

  1. Hi,
    do the ASP.NET 2.0 controls (such as the login control) have built-in
    support for localization?

    In other words, if I install the german language pack for .NET 2.0, will the
    login control be displayed in german or do I have to manually translate all
    the strings (in the ASPX page)?

    Martin Bischoff, Aug 15, 2006
    1. Advertisements

  2. Hi Martin,

    Yes the login control will be displayed in German if you installed the
    German language pack for .NET 2.0. You can verify this by following steps:

    1) Download and install the German language pack for .NET 2.0 from

    2) Create a simple web site, add a login control to a webform

    3) In the webform's source, add 'UICulture="auto"' in the <%@ Page
    directive, for example:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    Inherits="_Default" UICulture="auto" %>

    4) View this page in browser, change your browser's preferred language to
    German: IE/Tools/Internet Options/General/Languages/, add German language
    and move it to top, refresh the page, you should see the login control
    displayed in German language.

    If you installed other language packs, users browsing your web site can set
    their preferred language and your web page will display in the language if
    its installed.

    Hope this helps. Please feel free to post here if anything is unclear.

    Walter Wang (, remove 'online.')
    Microsoft Online Community Support

    Get notification to my posts through email? Please refer to

    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Walter Wang [MSFT], Aug 16, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.