-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMasterPage.Master.cs
More file actions
executable file
·42 lines (37 loc) · 1.53 KB
/
MasterPage.Master.cs
File metadata and controls
executable file
·42 lines (37 loc) · 1.53 KB
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace Dengue_Info
{
public partial class MasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
// Support for FaceBook Social Meta Graph
HtmlMeta meta = new HtmlMeta();
meta.Attributes.Add("property", "og:title");
meta.Attributes.Add("content", "疾病管制署登革熱地圖");
Page.Header.Controls.Add(meta);
meta = new HtmlMeta();
meta.Attributes.Add("property", "og:description");
meta.Attributes.Add("content", "疾病管制署登革熱地圖");
Page.Header.Controls.Add(meta);
meta = new HtmlMeta();
meta.Attributes.Add("property", "og:image");
meta.Attributes.Add("content", "http://cdcdengue.azurewebsites.net/data/images/dengue_map.png");
Page.Header.Controls.Add(meta);
meta = new HtmlMeta();
meta.Attributes.Add("property", "og:url");
meta.Attributes.Add("content", "http://cdcdengue.azurewebsites.net/VectorMap.aspx");
Page.Header.Controls.Add(meta);
meta = new HtmlMeta();
meta.Attributes.Add("property", "og:type");
meta.Attributes.Add("content", "website");
Page.Header.Controls.Add(meta);
}
}
}