473,508 Members | 2,374 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I stop the frmework from producing invalid XHTML for the validator?

Hello,

I have a site that produces 100% valid XHTML 1.0 Strict when viewed in a
browser (IE, Firefox, etc). I just tried validating the site with an
on-line validator, and got several errors.

It seems that the framework is sending the validator down-level code, as
it assumes that the validator is a down-level browser.

Is there any way to stop this? At the moment, anyone checking it (which
is something I encourage my customers to do) thinks that I have written
invalid code.

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 14 '06 #1
4 1269
I had to copy and paste the html generated in IE. I know its a pain
but I think its the only solution, unleass we find validator out there
that sends an uplevel browser id.

Alan Silver wrote:
Hello,

I have a site that produces 100% valid XHTML 1.0 Strict when viewed in a
browser (IE, Firefox, etc). I just tried validating the site with an
on-line validator, and got several errors.

It seems that the framework is sending the validator down-level code, as
it assumes that the validator is a down-level browser.

Is there any way to stop this? At the moment, anyone checking it (which
is something I encourage my customers to do) thinks that I have written
invalid code.

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)


Feb 14 '06 #2
In article <11*********************@o13g2000cwo.googlegroups. com>,
da*******@gmail.com writes
I had to copy and paste the html generated in IE. I know its a pain
but I think its the only solution, unleass we find validator out there
that sends an uplevel browser id.
Unfortunately, that's not my main problem. I can validate the code
produced using a feature on the Internet Explorer Developers Toolbar
(free download from MS) that uploads the current page's (X)HTML and
passes it to a validator.

My real problem is that one of the factors I use in advertising my
services is that I am one of the very few designers who produce 100%
valid HTML. This is a surprisingly strong point that has won me a lot of
business in the past. In classic ASP that was easy as you had total
control over the output. In ASP.NET it's a major pain as the framework
produces quite a lot of invalid XHTML. If a customer (or potential
customer) validates at a site I have written, they will see errors. Even
though the XHTML sent to a browser is valid, the code sent to the
validator is not. The customer doesn't know that, and assumes that my
code is not valid. Bang goes my selling point.

So, I need a way of getting around this, otherwise I'm stuck. Thanks for
the reply.
Alan Silver wrote:
Hello,

I have a site that produces 100% valid XHTML 1.0 Strict when viewed in a
browser (IE, Firefox, etc). I just tried validating the site with an
on-line validator, and got several errors.

It seems that the framework is sending the validator down-level code, as
it assumes that the validator is a down-level browser.

Is there any way to stop this? At the moment, anyone checking it (which
is something I encourage my customers to do) thinks that I have written
invalid code.

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)


--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 14 '06 #3
Hi Allan,

You could try to add <xHtmlConformance mode="Strict" /> to your
Web.config. Check this:

http://windowssdk.msdn.microsoft.com...d198eaa08a.asp

Greetz,

Doogie.

Alan Silver schreef:
In article <11*********************@o13g2000cwo.googlegroups. com>,
da*******@gmail.com writes
I had to copy and paste the html generated in IE. I know its a pain
but I think its the only solution, unleass we find validator out there
that sends an uplevel browser id.


Unfortunately, that's not my main problem. I can validate the code
produced using a feature on the Internet Explorer Developers Toolbar
(free download from MS) that uploads the current page's (X)HTML and
passes it to a validator.

My real problem is that one of the factors I use in advertising my
services is that I am one of the very few designers who produce 100%
valid HTML. This is a surprisingly strong point that has won me a lot of
business in the past. In classic ASP that was easy as you had total
control over the output. In ASP.NET it's a major pain as the framework
produces quite a lot of invalid XHTML. If a customer (or potential
customer) validates at a site I have written, they will see errors. Even
though the XHTML sent to a browser is valid, the code sent to the
validator is not. The customer doesn't know that, and assumes that my
code is not valid. Bang goes my selling point.

So, I need a way of getting around this, otherwise I'm stuck. Thanks for
the reply.
Alan Silver wrote:
Hello,

I have a site that produces 100% valid XHTML 1.0 Strict when viewed in a
browser (IE, Firefox, etc). I just tried validating the site with an
on-line validator, and got several errors.

It seems that the framework is sending the validator down-level code, as
it assumes that the validator is a down-level browser.

Is there any way to stop this? At the moment, anyone checking it (which
is something I encourage my customers to do) thinks that I have written
invalid code.

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)


--
Alan Silver
(anything added below this line is nothing to do with me)


Mar 10 '06 #4
Alan Silver wrote:
In article <11*********************@o13g2000cwo.googlegroups. com>,
da*******@gmail.com writes
I had to copy and paste the html generated in IE. I know its a pain
but I think its the only solution, unleass we find validator out there
that sends an uplevel browser id.


Unfortunately, that's not my main problem. I can validate the code
produced using a feature on the Internet Explorer Developers Toolbar
(free download from MS) that uploads the current page's (X)HTML and
passes it to a validator.

My real problem is that one of the factors I use in advertising my
services is that I am one of the very few designers who produce 100%
valid HTML. This is a surprisingly strong point that has won me a lot of
business in the past. In classic ASP that was easy as you had total
control over the output. In ASP.NET it's a major pain as the framework
produces quite a lot of invalid XHTML. If a customer (or potential
customer) validates at a site I have written, they will see errors. Even
though the XHTML sent to a browser is valid, the code sent to the
validator is not. The customer doesn't know that, and assumes that my
code is not valid. Bang goes my selling point.

So, I need a way of getting around this, otherwise I'm stuck. Thanks for
the reply.

If this is for a button saying "Validate Me" or something similar, that
links to one Validator site, then you could examine the User-Agent
string that comes from that validation site and then add an entry for
it in browserCaps that sets the same settings as (for example) IE6.
Then the framework should serve identical code.

On the other hand, if it could be one of many validation sites, then
you either have to do it for each one, or resign yourself to it not
happening.

Damien

Mar 10 '06 #5

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

Similar topics

9
5103
by: Antho | last post by:
Hello NG Sorry if this is the wrong NG to post this in. I have installed Apache2 and PHP on my Mdk 9.2 box. I have made an info.php page to test if php is working. It appears that it is as my...
4
2887
by: Antho | last post by:
Firstly, thank you to everyone that replied to my OP. I am new to the PHP world and so its great that there are people out there who are prepared to share their knowledge. Anyway, I am...
9
2031
by: Justin Sane | last post by:
I'm always sending back and forth my pages to the W3C XHTML validator (I can't stand error!) I also develop using application/xhtml+xml header, but still, there are errors that are not XML errors...
7
1808
by: Gapingwound | last post by:
I have one page that is not validating XHTML1 STRICT properly, but the validator at w3c is showing an error for something that is not in my page. Here's the error: 1. Line 72, column 160:...
2
1728
by: Jim Carlock | last post by:
http:/ / aquaticcreationsnc . com/lib/php/test.php Remove the spaces to visit the link above... The w3 validator identifies the ampersand character as the leading character for special...
3
21853
by: Felipe | last post by:
I am very new at all of this. I bought my domain a few months ago, and I'm running apache 2.2.2 Win32 on my home computer. My site is at http://www.fulloffacts.com/. My site is still new, as I'm...
2
1210
by: Debbie Croft | last post by:
I have a client who mandates XHTML compliance in the applications they commission. Problem is that I've just found that the Treeview control doesn't produce valid XHTML - even with the appropriate...
1
1262
by: Chris | last post by:
I know this has been posted before but I can't find anyone with a solution, I was wondering whether any one has a solution/workaround yet for the treeview XHTML "bug". The treeview produces invalid...
1
1386
by: vickymesh | last post by:
Is there an OFFLINE XHTML validator that I could download an install on my computer?...I know there's a good W3C validator plus I also saw a one on web design company site ; may be many more too...
0
7120
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
7380
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...
1
7039
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
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.