HOw TO USE META TAG IN ASP.NET

Discussion in 'ASP.NET 2.0' started by wisemx, Jan 22, 2008.

  1. You can programmatically change these in ASP.NET pages but for the most part they still go in your <head>
    Except your <head> can be set to run at the server: <head runat="server">

    <head runat="server">
    <title>Untitled Page</title>
    <meta id="MetaKeywords" name="keywords" runat="server" content="" />
    <meta id="MetaDescription" name="description" runat="server" content="" />
    </head>

    Look at the posts in this thread to see some talk about changing those values in Master Pages:
    http://forums.asp.net/p/891562/948765.aspx
     
  2. HI, Any one could give me a clear idea how and where to use meta tags in a ASP.NET webpage? I know there is script for that but now sure where to use , i mean in .ASPX page or load page. I'll be happy if any one could give me clear view of it with the script.
    Thanks
    Mary Ann
     

Share This Page