Results 1 to 5 of 5
  1. #1

    Default Remove/Ignore Doctype in .Net


    Maayong adlaw,

    Pwede ba nato ma-ignore ang doctype sa .Net pinaagi sa codes?

    Salamat...

  2. #2

    Default Re: Remove/Ignore Doctype in .Net

    Try to specify a null resolver.

    XmlDocument xDoc = new XmlDocument();
    xDoc.XmlResolver = null;
    xDoc.Load("filepath");

    If your using text reader set its xmlresolver property to null.

  3. #3

    Default Re: Remove/Ignore Doctype in .Net

    Dili man gikan sa XMl document bai, kana rang naa sa html source sa .net ba...

    Ing-ani man ni cya, naa ko'y master page sa .net unya tua didto ang doctype.
    Naa ko'y ubang pages nga dili mowork ang css kung naa ang doctype.
    Ang akong gusto nga buhaton kay kung ang givisit nga page kay katong pages
    nga dili mowork ang css, akong i-ignore ang doctype pinaagi sa codes. Pwede ba kaha na sa?

    Thanks anyway...

  4. #4

    Default Re: Remove/Ignore Doctype in .Net

    Solved na nako bai.... Dili nako i-include ang doctype sa specific page. Gi-ingon ani nalang nako:

    Code:
    <%
      string sPath = System.Web.HttpContext.Current.Request.Url.AbsolutePath; 
      System.IO.FileInfo oInfo = new System.IO.FileInfo(sPath); 
      string sPageName = oInfo.Name;
    
      if (sPageName.ToLower() != "PageName.aspx".ToLower())
      {
    %>
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm...sitional.dtd">
    <%
      }
    %>

  5. #5

    Default Re: Remove/Ignore Doctype in .Net

    If you have other solution(s), please post it here.. It would be much appreciated... Thanks...

  6.    Advertisement

Similar Threads

 
  1. how to remove DELETE option in PSP menu
    By ondoy in forum Gizmos & Gadgets (Old)
    Replies: 0
    Last Post: 02-08-2010, 08:10 PM
  2. FTP functionality/class for Smart Device in .NET
    By kibotizer in forum Programming
    Replies: 1
    Last Post: 01-23-2010, 05:38 AM
  3. How would i removed myself from istorya.net
    By icecube in forum General Discussions
    Replies: 2
    Last Post: 07-05-2009, 03:12 PM
  4. weird behavior in .net
    By silent-kill in forum Programming
    Replies: 7
    Last Post: 01-22-2009, 12:07 AM
  5. Websites done in .NET
    By ComputerTech in forum Websites & Multimedia
    Replies: 4
    Last Post: 11-10-2006, 10:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top