protected void DisplayMetaTags() { StoreProc _obj = new StoreProc(); DataTable dt = new DataTable(); dt = _obj.GetStaticPages(Convert.ToInt32(Request["id"])); if (dt.Rows.Count > 0) { ((HtmlMeta)Master.FindControl("_metaKeywords")).Attributes.Add("Content", dt.Rows[0]["MetaKeywords"].ToString()); ((HtmlMeta)Master.FindControl("_metaDescription")).Attributes.Add("Content", dt.Rows[0]["MetaDesc"].ToString()); } }
protected void DisplayMetaTags() { StoreProc _obj = new StoreProc(); DataTable dt = new DataTable(); dt = _obj.GetStaticPages(Convert.ToInt32(Request["id"])); if (dt.Rows.Count > 0) { litPageHeading.Text = Convert.ToString(dt.Rows[0]["PageTitle"]); litPageDesc.Text = Convert.ToString(dt.Rows[0]["pagedesc"]); a = litPageHeading.Text; ((HtmlTitle)Master.FindControl("_metaTitle")).Text = dt.Rows[0]["metatitle"].ToString(); ((HtmlMeta)Master.FindControl("_metaKeywords")).Attributes.Add("Content", dt.Rows[0]["metakeywords"].ToString()); ((HtmlMeta)Master.FindControl("_metaDescription")).Attributes.Add("Content", dt.Rows[0]["metadesc"].ToString()); } }