asp.net mvc - W3C Validation Not working for RazorView -
i using mvc4 project , doing url rewrite on server side in routeconfig
, appending .html
@ end of url of every page..
www.mysite.com/home.html
i have couple of pages , pages linked home page (every think working find in browser).
but when validate using w3c link checker, broken link error message.
i don't know can issue. 1 more thing if replace .html
.aspx
or other extension validated w3c. don't know issue.
my code is:
routes.maproute( name: "features", url: "features.html", defaults: new { controller = "home", action = "features", page = urlparameter.optional } );
web.config
:
<add name="htmlfilehandler" path="*.html" verb="get" type="system.web.handlers.transferrequesthandler" precondition="integratedmode,runtimeversionv4.0" />
any highly appreciated
ok solved this.
i replaced
<add name="htmlfilehandler" path="*.html" verb="get" type="system.web.handlers.transferrequesthandler" precondition="integratedmode,runtimeversionv4.0" />
in webconfig with
<add name="htmlfilehandler" path="*.html" verb="*" type="system.web.ui.pagehandlerfactory" />
and works ... page validated w3c now. :)
Comments
Post a Comment