views:

89

answers:

3

Following my question here I run the suggested Tidy Program which came back with a whole load of errors regarding the tool not recognising ASP tags. Is it possible for a tool to validate ASP.NET pages before compile/delivery via a browser?

A: 

you could potentially perform your own validation by overriding the appropriate render methods.

MasterMax1313
+3  A: 

If you are using VS then your pages are being evaluated as you type them, mismatched tags, etc are highlighted. Beyond making sure that you have entered the HTML correctly I'm not sure what problem you are looking to solve.

My approach to any problem of this type is to solve it at source rather than patching mid-way.

Lazarus
A: 

You can validate the rendered ASP.NET (and with IIS7 even static) pages using a HttpModule. For a complete example check: XHTML Validator For All.

If you log the validation errors, you can later address them directly (at the source level).

Ronald