-
Notifications
You must be signed in to change notification settings - Fork 0
/
Site.master.cs
48 lines (44 loc) · 1.3 KB
/
Site.master.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
using System;
using System.Collections;
using System.Web;
using BIC.Biz;
using BIC.Entity;
using BIC.Utils;
using BIC.WebControls;
public partial class Site : BaseMasterPage
{
public Hashtable Hashtable
{
set { HttpContext.Current.Session.Add("cart", value); }
get
{
var hashtable = (Hashtable)HttpContext.Current.Session["cart"] ?? new Hashtable();
return hashtable;
}
}
protected SeoEntity SeoInfo = new SeoEntity();
public string count = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack) return;
var seo = new Seo();
SeoInfo = seo.GetSeoInfo("ShareLogo.jpg");
Page.Title = SeoInfo.MetaTitle;
Page.MetaKeywords = SeoInfo.MetaKeyword;
Page.MetaDescription = SeoInfo.MetaDescription;
//count = string.IsNullOrEmpty(BicSession.ToString("TotalQuanlity")) ? "0" : BicSession.ToString("TotalQuanlity");
}
public string _Getlink(string url, string name)
{
if (url.Contains("{4}/{3}"))
{
string link = "/{0}{1}{2}" + url;
link = string.Format(link, "", "", "", name, BicLanguage.CurrentLanguage);
return link;
}
else
{
return url;
}
}
}