dynamik meta-tags

Discussion in 'ASP General' started by rolfb, Jun 24, 2006.

  1. rolfb

    rolfb Guest

    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
     
    rolfb, Jun 24, 2006
    #1
    1. Advertising

  2. "rolfb" <> wrote in message
    news:...
    >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
     
    Egbert Nierop \(MVP for IIS\), Jun 24, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nym Pseudo

    META NAME and META HTTP-EQUIV

    Nym Pseudo, Sep 26, 2003, in forum: HTML
    Replies:
    1
    Views:
    574
    =?iso-8859-1?Q?brucie?=
    Sep 26, 2003
  2. Donald Firesmith

    html tags within meta tags allowed?

    Donald Firesmith, Jan 5, 2005, in forum: XML
    Replies:
    5
    Views:
    918
    Andy Dingley
    Jan 8, 2005
  3. Duane Johnson

    Meta methods to govern meta data?

    Duane Johnson, Oct 25, 2005, in forum: Ruby
    Replies:
    6
    Views:
    253
    Adam Sanderson
    Oct 28, 2005
  4. Erik Veenstra

    Meta-Meta-Programming

    Erik Veenstra, Feb 7, 2006, in forum: Ruby
    Replies:
    29
    Views:
    416
    Erik Veenstra
    Feb 8, 2006
  5. Erik Veenstra

    Meta-Meta-Programming, revisited

    Erik Veenstra, Jul 21, 2006, in forum: Ruby
    Replies:
    21
    Views:
    462
    Erik Veenstra
    Jul 25, 2006
Loading...

Share This Page