using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Test_tsBrowserLanguage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
HttpRequest Request = HttpContext.Current.Request;
string browerlang = Request.UserLanguages[0].ToString();
Response.Write(browerlang);
}
catch (Exception ex)
{
throw ex;
}
}
}
沒有留言:
張貼留言