-
Notifications
You must be signed in to change notification settings - Fork 0
/
AboutHospital.aspx.cs
63 lines (61 loc) · 1.77 KB
/
AboutHospital.aspx.cs
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class AboutHospital : System.Web.UI.Page
{
DBClassDataContext db = new DBClassDataContext();
clsSecurity Security = new clsSecurity();
clsLanguage lang = new clsLanguage();
string strLang = string.Empty;
public AboutHospital()
{
strLang = lang.LanguageCurrent;
}
protected void Page_Load(object sender, EventArgs e)
{
clsDefault clsDefault = new clsDefault();
if (!Page.IsPostBack)
{
BindContent();
}
}
private void BindContent()
{
//Check Title
//if (strLang == "th-TH")
//{
// lblSiteMap.Text = "รู้จักเรา > โรงพยาบาลกรุงเทพจันทบุรี";
//}
//else if (strLang == "en-US")
//{
// lblSiteMap.Text = "About Hospital > Overview";
//}
//else
//{
// lblSiteMap.Text = "รู้จักเรา > โรงพยาบาลกรุงเทพจันทบุรี";
//}
}
private int findLangUID(string LangShort)
{
int LangUID = 0;
try
{
var tbLang = from l in db.Languages
where l.Name == LangShort.Trim() && l.Active == '1'
select l;
foreach (Language l in tbLang)
{
LangUID = l.UID;
}
}
catch (Exception ex)
{
ClientScript.RegisterClientScriptBlock(this.GetType(), "Information", "alert('" + ex.ToString() + "')", true);
}
return LangUID;
}
}