473,408 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Valid HTML 4.01 or not?

Hi,

Is it just me or is it impossible to generate valid HTML code with
Visual Studio 2003 .net? I am specially thinking about the
DropDropList. When rendered it puts a language="javascript" attribute
in the select. That is one example of an invalid tag attribute.

What can I do to ensure valid html (preferable xhtml)?
_Can_ I do something?

--
Thomas Due
Software Developer
Scanvaegt Nordic A/S
Posted with XanaNews version 1.16.3.1
Nov 18 '05 #1
2 5438

I'm using XHTML 1 transitional -- it's doable, but one has to do some rewriting; I tried for strict for a while and gave up -- too many controls just couldn't be convinced to not sprinkle extra bits I didn't want, and I didn't have time/money to rewrite the entire control library.

The biggest problem I ran into was the HTML editor/designer rewriting my HTML (like taking all of <img /> and turning them into <img> etc.) If you beat on it long enough you can get it to stop most of this --

If you really want to use XHTML, I think there's a company selling XHTML controls for ASP.NET, I've never tried them; do a google. I'm sure (hope) Whidbey will be better able to generate standard markup. I think there's an intellisense on the web for XHTML for Visual Studio -- yet another google -- that is helpful.

Good luck.
"Thomas Due" <tdue@mail_remove_.dk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

Is it just me or is it impossible to generate valid HTML code with
Visual Studio 2003 .net? I am specially thinking about the
DropDropList. When rendered it puts a language="javascript" attribute
in the select. That is one example of an invalid tag attribute.

What can I do to ensure valid html (preferable xhtml)?
_Can_ I do something?

--
Thomas Due
Software Developer
Scanvaegt Nordic A/S
Posted with XanaNews version 1.16.3.1
Nov 18 '05 #2
another big problem is aps.nets use of underscore in system ID tags.

-- bruce (sqlwork.com)

"Scott" <no*****@this-is-extra-hotmail.com> wrote in message news:eU**************@TK2MSFTNGP12.phx.gbl...

I'm using XHTML 1 transitional -- it's doable, but one has to do some rewriting; I tried for strict for a while and gave up -- too many controls just couldn't be convinced to not sprinkle extra bits I didn't want, and I didn't have time/money to rewrite the entire control library.

The biggest problem I ran into was the HTML editor/designer rewriting my HTML (like taking all of <img /> and turning them into <img> etc.) If you beat on it long enough you can get it to stop most of this --

If you really want to use XHTML, I think there's a company selling XHTML controls for ASP.NET, I've never tried them; do a google. I'm sure (hope) Whidbey will be better able to generate standard markup. I think there's an intellisense on the web for XHTML for Visual Studio -- yet another google -- that is helpful.

Good luck.
"Thomas Due" <tdue@mail_remove_.dk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

Is it just me or is it impossible to generate valid HTML code with
Visual Studio 2003 .net? I am specially thinking about the
DropDropList. When rendered it puts a language="javascript" attribute
in the select. That is one example of an invalid tag attribute.

What can I do to ensure valid html (preferable xhtml)?
_Can_ I do something?

--
Thomas Due
Software Developer
Scanvaegt Nordic A/S
Posted with XanaNews version 1.16.3.1
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Shyamal Prasad | last post by:
Hi, Is there anyway to write JSP files as valid HTML of any sort. What I want to know is if JSP files are some sort of valid XML with a DTD that will check contents. Perhaps JSP files are valid...
8
by: Hostile17 | last post by:
Consider the following HTML. ---------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta...
38
by: Jukka K. Korpela | last post by:
As well all know, valid markup is important... but when trying to find a convincing modern argument in favor of this, I found pages like http://www.htmlhelp.com/tools/validator/reasons.html which...
18
by: Neal | last post by:
According to the specs (http://www.w3.org/TR/html401/struct/links.html#h-12.2), the <a> element requires an end tag. And so, when we use <A NAME="foo"> in HTML 2.0 to 4.01, it won't validate,...
0
by: Tao | last post by:
I just upgraded .NET framework to 1.1 and VS.Net to 2003 version and tried to test it out. I created an ASP.NET project using the wizard and tried to run it by hitting "F5". I got an exception:...
12
by: thomas_jedenfelt_1 | last post by:
Hi everyone, Is the W3C HTML Validator in error when it returns <br /> as valid for HTML 4.01 Strict doctype? In March 2004 , the Validator returned <br />, <hr /> and <img /> as invalid for...
3
by: Peter Hardy | last post by:
Hi guys, Sorry for the cross-post but I got no response in the asp.net newsgroup. I am trying to develop a mini e-learning application where the user provides content for each page....
7
by: Alan Silver | last post by:
Hello, I am a complete and utter newbie at ASP.NET, so please forgive any stupid questions ;-) I am just trying to get my head around the whole web forms business, but have run into a...
1
by: Robert Morgan | last post by:
|I'm trying to run a query on a database using php and postgres functions ||<?php db_connect(); $stat = pg_exec($connstr,"SELECT WSID from tblWorkstation "); while ($row = pg_fetch_rows($stat))...
17
by: henry | last post by:
Folks Here's a skeleton, generic HTML page, call it "index.php". You'll see a bit of php code in the middle: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.