The doctype is mandatory for the rendered
page, not for the server page. This means if you have a master page and other pages you define a doctype only for the master page. If you have an aspx page and user controls in it, you have to specify a doctype for the aspx page alone, not for every user control (ascx file).
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.