ASP component to control meta tags

T

Torben Laursen

Hi

I would like to have one place where I can control the metatags in my
website. Mostly keywords.
Is there a component that will let me do that or what is the best way?

Thanks Torben
 
D

Dblood

Torben said:
Hi

I would like to have one place where I can control the metatags in my
website. Mostly keywords.
Is there a component that will let me do that or what is the best way?

Thanks Torben

I've done this before by making the <head></head> tag a server-side
control. I just used an HTMLGenericControl then loaded the metatags
from a database table.

Example:

<HTML>
<Head id=pageHead runat=server>

</Head>
<Body>

</Body>
</HTML>

in CodeBehind:
Protected Withevents pageHead as _
System.Web.UI.HtmlControls.HtmlGenericControl

pageHead.InnerHtml = oDataView(0).Row("header_info")

Hope this helps,

dkb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top