html - How to SET Doctype from server side (asp.net) -


i have migrating clients 1 one using old doctype using newer one. old doctype: <!doctype html public \"-//w3c//dtd html 4.0 transitional//en\"> new doctype: <!doctype html>

in page load of page check database , based on db flag need set request 1 or other.

how can set doctype page server side?

what doing far @ top of .aspx: <%= doctype %> , on server side, in page load load protected variable named doctype. although working, having other problems it,s o need other way of doing it.

i tried this: <%# doctype %> didn't work.

thanks!!


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -