Change DocType dynamically

I have a single page(created before Master pages were available) that loaded dynamically one or another user control.Some child controls have css for quirk mode, but for new controls I want to use latest DocType
<!DOCTYPE html>
The solution is to set it dynamically in code-behind depending on current control to load(the code is copied from

<%@ Page Language=“C#” AutoEventWireup=“true” CodeFile=“Default.aspx.cs”
Inherits=“_Default” %>

<asp:literal runat=“server” id=“DocType”></asp:literal>

<html xmlns=“”>
<head runat=“server”>
==============code behind=========
protected void Page_Load(object sender, EventArgs e)
string docType;
docType= “<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0
docType= “<!DOCTYPE html>”

this.DocType.Text= docType;