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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is an old post, but for future reference in ASP.NET one can do the following to avoid blank action attributes:
This will validate with W3C and does not require you to do any special coding to detect the page url you are currently on.