Adding Meta Tag Programatically in c#
<p>I tried to add meta tag programatically it is working fine when there is Head element with  runat ="server" in .aspx page .</p>

<p>The code behind is:</p>

<pre><code>HtmlMeta meta = new HtmlMeta();

meta.Name = "robots";

meta.Content = "noindex,follow";

this.Page.Header.Controls.Add(meta);
</code></pre>

<p>But i have some script in head tag which contains code blocks like &lt;% ... %> .so i cannot keep the runat = "server" value.</p>

<p>The problem is i have to add meta tag only programatically because the meta tag will add based on value coming from database</p>

<p>Is there any way to solve this issue so that my script inside head element works as usual and i can add meta tag programatically. </p>
