By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,602 Members | 1,507 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,602 IT Pros & Developers. It's quick & easy.

VWD Validation error - Element 'form' is missing required attribute 'action'

P: n/a
Hello,

I'm getting an odd validation error from VWD. As I understand it, an
opening ASP.NET for tag is supposed to look like...

<form runat="server">

with an optional ID attribute. VWD gives me the following validation
error...

Element 'form' is missing required attribute 'action'

Why? Surely it should know that the action will be supplied when the
form is rendered.

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
Jan 29 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sun, 29 Jan 2006 21:59:21 +0000, Alan Silver
<al*********@nospam.thanx.invalid> wrote:
Hello,

I'm getting an odd validation error from VWD. As I understand it, an
opening ASP.NET for tag is supposed to look like...

<form runat="server">

with an optional ID attribute. VWD gives me the following validation
error...

Element 'form' is missing required attribute 'action'

Why? Surely it should know that the action will be supplied when the
form is rendered.

TIA


I don't think the id is optional (even if what you read said so). I
tried creating a form without the id and got the exact message you are
getting.

Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
Jan 30 '06 #2

P: n/a
>I don't think the id is optional (even if what you read said so). I
tried creating a form without the id and got the exact message you are
getting.


Well cut off both my les and call me Shorty (as my late Grandpa used to
say), you're right.

Bit of a misleading error message isn't it? If the ID isn't optional,
then the error message should have said so. Instead it asked for an
action attribute which *is* optional!!

Anyway, thanks for the heads-up.

--
Alan Silver
(anything added below this line is nothing to do with me)
Jan 30 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.