Results 1 to 4 of 4

Thread: XHTML from asp.net ?

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    46

    XHTML from asp.net ?

    hi all!

    i understand that asp.net pumps XHTML to the browser and its the standerd from w3c. but when i am trying to validate the aspx page with w3c then its giving me message that "not a valid page" how do i make the page a valid XHTML.

    can any one clarify me in this regard

    thanks
    Kanaka Prasad

  2. #2

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    46
    is there a way i can get the right xhtml by controlling asp.net or codebehind or any other settings.
    ??
    Kanaka Prasad

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Actually ASP.NET only pumps out older HTML 4.01 I believe. If you want to pump out XHTML, you will need top make your own web control's that push out tags that conform to the XHTML standard.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    Member Stef's Avatar
    Join Date
    May 2001
    Posts
    41
    One of the bigger problems with ASP.NET and XHTML is that ASP.NET creates form tags with both the name="" and id="" attributes, while the newest XHTML specification does not allow name anymore. XHTML 1.0 Transitional seems to work fine though. If anyone knows a way to stop ASP.NET from generating the name attribute, I'd like to hear it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width