在asp.net中更改语言 [英] Change language in asp.net
本文介绍了在asp.net中更改语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
要求网页用英文打开,用户可以将其转换成西班牙文。
我用过下面的代码,但它只用于Calendar控件。
Hi Guys,
Requirement is that web page would open in English and user can convert it into Spanish.
I have used below code but its only working with Calendar control.
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(this.DropDownList1.SelectedValue);
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(this.DropDownList1.SelectedValue);
base.InitializeCulture();
我也使用了下面的代码,但它不起作用。
I have also used below code but its not working.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Culture="es-ES" UICulture="es-ES" %>
请帮帮我。
谢谢。
Please help me.
Thanks.
推荐答案
请开始从这里: http://msdn.microsoft.com/en -us / library / vstudio / c6zyy3s9%28v = vs.100%29.aspx [ ^ ]。
你需要明白:那里不是转换成语言。这被称为翻译,是专业活动之一。 :-)
-SA
Please start from here: http://msdn.microsoft.com/en-us/library/vstudio/c6zyy3s9%28v=vs.100%29.aspx[^].
And you need to understand: there is no such thing as "convert into language". This is called "translation", one of the professional activities. :-)
—SA
这篇关于在asp.net中更改语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文