document.doctype is always returning null c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jambalapamba
    New Member
    • Nov 2007
    • 23

    document.doctype is always returning null c#

    HI

    i am trying to get the doctype of a html document using the following code

    document = (HTMLDocument)w ebBrowser.Docum ent;
    string url = document.url; // This line is working
    string doctype = document.doctyp e.ToString();//this line is always null

    am i implementing doctype correctly or do i have to do differently.Can any one please help me.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Maybe there is no doctype given for the document?

    Comment

    Working...