using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { CreateMetaTag("description", "Online rental directory for Houses and Apartments for rent in the US. Place for both landlords to rent properties and renters to find properties."); } #region CreateMetaTag Method private void CreateMetaTag(string name, string content) { HtmlMeta hm = new HtmlMeta(); HtmlHead head = (HtmlHead)Page.Header; hm.Name = name; hm.Content = content; head.Controls.Add(hm); } #endregion }