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
Post a Comment