PDA

View Full Version : HOw TO USE META TAG IN ASP.NET


wisemx
01-22-2008, 01:22 AM
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

maryann
01-22-2008, 02:19 AM
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