HtmlGenericControl newControl = new HtmlGenericControl("someTag");
newControl.Attributes["someAttr"] = "some value";
Page.Header.Controls.Add(newControl);
Hope this helps ... ( link )
UPDATE:
Is this what you want:
string serverName = "QWERTY123";
this.Page.Header.Controls.Add(new LiteralControl(""));
And here is the conclusion:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
</title></head>
source
share