-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefault.aspx.cs
More file actions
30 lines (26 loc) · 827 Bytes
/
Copy pathDefault.aspx.cs
File metadata and controls
30 lines (26 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApp
{
public partial class Default : System.Web.UI.Page
{
public const string LANGUAGE = "zh-CN";
protected override void InitializeCulture()
{
this.Culture = LANGUAGE;
this.UICulture = LANGUAGE;
CultureInfo ci = System.Globalization.CultureInfo.CreateSpecificCulture(LANGUAGE);
ci.DateTimeFormat.DateSeparator = "|";
System.Threading.Thread.CurrentThread.CurrentCulture = ci;
System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
}