Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Change Page Doctype

Change Page Doctype

Scheduled Pinned Locked Moved C#
csharphtmlasp-netalgorithmsquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tadhg88
    wrote on last edited by
    #1

    Hi, I am developing an app using C#, asp.net and vs2008, i want to replace the current doctype

    [!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ]

    with a different version

    [!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]

    when specific pages are displayed, so im just wondering if this is possible and if so what i need to be searching for? Thanks in advance Tim

    L 1 Reply Last reply
    0
    • T tadhg88

      Hi, I am developing an app using C#, asp.net and vs2008, i want to replace the current doctype

      [!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ]

      with a different version

      [!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]

      when specific pages are displayed, so im just wondering if this is possible and if so what i need to be searching for? Thanks in advance Tim

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      You want to change this at runtime? Maybe a placeholder or a literal maybe?

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4a out now (29 May 2008)

      T 1 Reply Last reply
      0
      • L leppie

        You want to change this at runtime? Maybe a placeholder or a literal maybe?

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4a out now (29 May 2008)

        T Offline
        T Offline
        tadhg88
        wrote on last edited by
        #3

        yes i need to change it at runtime basically because i need to apply CSS layout to 2 specific user controls but if i change the doctype for every page the entire web app is centered on the page, thanks for your reply ill check out these options Tim

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups