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. Advertisements

  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. Advertisements

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. Mathew George
    Replies:
    1
    Views:
    5,365
    Jim Blizzard
    Jul 1, 2003
  2. Donald Gordon

    UTF-8, LWP and http-equiv meta tags

    Donald Gordon, Feb 25, 2004, in forum: Perl
    Replies:
    0
    Views:
    771
    Donald Gordon
    Feb 25, 2004
  3. John

    Searcging meta tags on a site

    John, Jul 31, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    326
  4. Nym Pseudo

    META NAME and META HTTP-EQUIV

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

    html tags within meta tags allowed?

    Donald Firesmith, Jan 5, 2005, in forum: XML
    Replies:
    5
    Views:
    1,238
    Andy Dingley
    Jan 8, 2005
  6. Duane Johnson

    Meta methods to govern meta data?

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

    Meta-Meta-Programming

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

    Meta-Meta-Programming, revisited

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