W3C validation for server-side form tag

asp.net, html, w3c-validation

Solution

This is an old post, but for future reference in ASP.NET one can do the following to avoid blank action attributes:

<form action="#" runat="server">

This will validate with W3C and does not require you to do any special coding to detect the page url you are currently on.

Problem

I've checked my website html validation in w3.org and got this error Bad value for attribute action on element form: Must be non-empty. but my form is asp.net server-side form and I can't set action atribute. How can I solve this error?

Original source