My last was missing something...
Probably the easiest way would be to add this in the <head></head>
section:
<asp:Literal runat="server" id="metaPlaceHolder"></asp:Literal>
Then in Page_Load you would iterate through whatever dynamic source you
have for your meta tag info and add the html line by line:
this.metaPlaceHolder.Text = "<meta name=\"keywords\" content=\"one, two,
three\">\n\t\t";
this.metaPlaceHolder.Text += "<meta name=\"keywords\" content=\"one,
two, three\">";
The /n add the CrLf and the /t/t adds two tabs to line the tags up.
John
-----Original Message-----
From: clintonG [mailto:cs*********@REMOVETHISTEXTmetromilwaukee.co m]
Posted At: Wednesday, August 31, 2005 11:52 AM Posted To:
microsoft.public.dotnet.framework.aspnet
Conversation: Write & Format Meta Tags?
Subject: Write & Format Meta Tags?
Anybody know how to dynamically write the meta tags using code so they
are formatted on a separate line in the HTML source?
Preferred or optimal framework classes that may be used in this regard?
<meta... />
<meta... />
<meta... />
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL
http://metromilwaukee.com/
URL
http://clintongallagher.metromilwaukee.com/