show validation erros in

Posted on 2007-11-22
Last Modified: 2013-11-07
I have a website in ASP.NET with C#
when I compile the project I have no errors.
When I do have an error I see besides the  new error many error in the HTML code. (validation erros)
Why I don't see these errors all the time.
I gauess this is a parameter in the debugging mode but I don't know where.
for example:

Validation (XHTML 1.0 Transitional): Element 'td' is missing its closing tag.      
Validation (XHTML 1.0 Transitional): Element 'img' is missing required attribute 'alt'.      
Question by:ANAT2403
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2

Expert Comment

ID: 20334108
See this

It's about the
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > - line in the .aspx file

Author Comment

ID: 20334134
The question is how to cause the compiler to show these error messages in each compilation and not only when there are other errors.
LVL 10

Accepted Solution

Oliver Amaya earned 500 total points
ID: 20334236
Hi, HTML validation errors are shown as warnings, to see them you have to open the Error List Window after you compile your program, it may also be the case that you have to enable the warnings to be visible in this window as well.
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.


Author Comment

ID: 20334268
this is not the case.
These validation erros were not seen at all also in the warning list window untill there was a   non validation errors and only then I could see all the errors

Expert Comment

ID: 20334382
VS validates you'r HTML based on the
DOCUMENTTYPE declared in the aspx file
try changing the
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ""> 

LVL 10

Expert Comment

by:Oliver Amaya
ID: 20334397
Is it enable in visual studio options?
Check the Show Errors option in Tools->Options->Text Editor->Html->Validation

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 71
how to remove duplicate code from my project 5 49
VS2010 Build fails to install 14 82 uploading picture to a temporary folder 4 26
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question