简体   繁体   中英

Markup Validation for asp.net aspx

I created a website using asp.net. Before launching the website on the internet I wanted to do a validation test on the web forms I used. I already know of how to validate the HTML"Static Websites", by going W3C Markup Validation Service. Is it possible to do the same validation methodology on Webforms.aspx by upldoading the files? If its ok, how to initial the validation process?!

Thank you.

You can't run a static validation directly against dynamic content, because dynamic content is well dynamic!

That said, for your scenario, load your application in a browser. Then at various points, save the html markup (ie File -> Save in your browser) and then run the static validation on the saved markup. So it might be interesting to save the form when empty, when use entered bad values, and after the form has been submitted.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM