To dynamically generate your META tags with VB.Net:
Add an ID tag to your Meta tag and set the runat attribute to "server":
<meta id="MetaDesc" runat="server"></meta>
The closing tag is required.
In the code behind page, declare the control as an HTMLGenericControl
Protected MetaDesc As System.Web.UI.HtmlControls.HtmlGenericControl
In the Page_Load event, set the name and content attributes.
If IsPostBack = False Then
MetaDesc.Attributes("content") = "x"
MetaDesc.Attributes("name") = "description"
end if
x is the dynamically generated value
Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
International SEM | Social Media | Search Friendly Design | SEO | Paid Search / PPC | Seminars | Forum Threads | Q&A | Copywriting | Keyword Research | Web Analytics / Conversions | Blogging | Dynamic Sites | Linking | SEO Services | Site Architecture | Search Engine Spam | Wrap-ups | Business Issues | HRA Questions | Online Courses
Dynamically Generated Meta Tags With Vb.net
Started by
JeffSmith_NH
, Nov 13 2004 01:49 PM
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








