dynamik meta-tags

R

rolfb

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
 
E

Egbert Nierop \(MVP for IIS\)

rolfb said:
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.
 

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


Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top