Just off the top of my head (which works), in Page_Load:
StringBuilder sb = new StringBuilder();
string someName = "keywords";
string someKeywords = "blah, doh";
sb.Append("<meta name=\"");
sb.Append(someName);
sb.Append("\" content=\"");
sb.Append(someKeywords);
sb.Append("\" />");
Header.Controls.Add(new LiteralControl(sb.ToString()));
Not sure this is how I would handle it, but it is a temporary solution. Wrap
it in its own function so you can change the implementation if you find a
better way.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"Arne" wrote:
I need literal controls in the <head> section of my page. I need to be able
to load dynamic values in the head section. It works fine in ASP.Net 1.1, but
Asp.net 2.0 gives a compile error.
I need the dynamically assigned <base href='??'> and
<META NAME="Description" CONTENT="??">
Is there a work around?