E
Eric Levin
I would like to load the Meta Tags in the page from Code:
Currently they don't come up.
The Source that I have:
private void LoadHeaders()
{
DataSet oDs = new DataSet();
oDs = MetaTags_Select("default.aspx");
foreach (DataRow dr in oDs.Tables[0].Rows)
{
string TagName = dr["TagName"].ToString();
string Description = dr["TagDescription"].ToString();
if (TagName == "Title")
PageTitle.InnerText = Description;
else
Response.AppendHeader(TagName, Description);
}
}
The results from the database are brought back into the Dataset, but the
Response.AppendHeader don't seem to work. The title works no problem.
Thanks,
Eric Levin
Sounddogs.com
Currently they don't come up.
The Source that I have:
private void LoadHeaders()
{
DataSet oDs = new DataSet();
oDs = MetaTags_Select("default.aspx");
foreach (DataRow dr in oDs.Tables[0].Rows)
{
string TagName = dr["TagName"].ToString();
string Description = dr["TagDescription"].ToString();
if (TagName == "Title")
PageTitle.InnerText = Description;
else
Response.AppendHeader(TagName, Description);
}
}
The results from the database are brought back into the Dataset, but the
Response.AppendHeader don't seem to work. The title works no problem.
Thanks,
Eric Levin
Sounddogs.com