Click to See Complete Forum and Search --> : Validation current Xhtml page!


TaoDay
04-12-2006, 09:47 PM
Because i use form authentication. So, When i click [xhtml validation] icon validate current page. Validator only validate loginPage with UrlReturn=CurrentPage.

Result: Passed validation
Address: http://ExcampleHost/applicationPath/LoginPage.aspx?ReturnUrl=%2FPKB%2FViews%2FCurrentPage.aspx

=> I can not validate current page if i have used form authentication.

Is there any people encounter this trouble. Please, give me a hand.
Thanks so much.

<Eddie>
04-13-2006, 06:47 AM
Redirects, authentication etc all present barriers to the validator. The best way to validate the page if there is a barrier is to save the page as HTML and use the upload factility. It's much easier that way than coding to allow for the validator to pass authentication.

TaoDay
04-13-2006, 10:50 PM
Actually! I tried many way, and i knew your way were simplest. But browser, it gave me a result different with actually code.

Ex:
_Original code: "All rights reserved.<br />"
_Save page as: "All rights reserved.<br>" <~~ this is wrong absolutely.

So, I saved "Xhtml Source Code" instead "Save Page As". My problem is shooted.

However, there are a lot of uncomfortable thinks:
1_User click [Xhtml Validation] icon for validate this page. They imaging this page pass validate but that page is loginPage.
2_Save "Xhtml Source Code" waste a lot of time.

I'll try to find out comfortable way and share with you if I am lucky.
Thanks for your reply.