How can I determine DOCTYPE at runtime?

R

Russell

I write server controls for other developers. I am porting them to 2.0
and I expect some will be used in apps upgraded from 1.1 and using an
HTML DOCTYPE. In new 2.0 apps I expect the DOCTYPE to be XHTML.

In a few circumstances I'd like to emit different markup based on the
DOCTYPE, but I can't figure out how to determine the DOCTYPE of the
page the control is in at runtime.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top