|
Home > Archive > IIS ASP > June 2006 > dynamik meta-tags
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| I use ASP.net 2.0 C# for my shop-system.
I want to programm dynamic meta-tags.
In some books I find as memer of HtmlHead statements like
Page.Header.Metadata.Add("description", "my product");
If I try this, i got the error message: Metadaten not member of HtmlHead
Want do I wrong?
What other way is possible?
rolf brockmann
| |
| Egbert Nierop \(MVP for IIS\) 2006-06-24, 7:26 am |
|
"rolfb" <rolfb@discussions.microsoft.com> wrote in message
news:FD37ED30-77F6-46AC-8847-8C3A6AD5596E@microsoft.com...
>I use ASP.net 2.0 C# for my shop-system.
> I want to programm dynamic meta-tags.
> In some books I find as memer of HtmlHead statements like
> Page.Header.Metadata.Add("description", "my product");
>
> If I try this, i got the error message: Metadaten not member of HtmlHead
>
> Want do I wrong?
> What other way is possible?
You should use
Response.AddHeader("description", "my product")
or better
Response.AppendHeader("description", "my product") ;
But your question concerns ASP.NET and this newsgroup concerns classic ASP.
> rolf brockmann
|
|
|
|
|