1.Add ID attribute in master page meta tag
2.Add the following code in Page_Load()
Header.FindControl("meta_tag_ID").Dispose();
HtmlMeta hm = new HtmlMeta();
hm.ID = "meta_new_ID";
hm.Attributes.Add("name", "viewport");
hm.Attributes.Add("content", "width = device-width,initial-scale = 1.0,maximum-scale = 2.8, user-scalable = no");
Header.Controls.Add(hm);
No comments:
Post a Comment