How many <FORM> tags per ASPX?

  • Thread starter Thread starter Larry
  • Start date Start date
L

Larry

Is it true that I can only have one <FORM> tag per aspx
page? I have heard this and seen this on some other .net
forums. Why is this necessary? How do you work around
the situation where you want two different sections on
the same page to postback to different pages?
Thanks
 
Only one FORM tag is allowed per ASPX page. For different sections, using
webcontrols might solve your problem.

Regards,

Mun
 
You can only have one visible server form on the page at a time.
So you could have more than one server form as long as you only show one at
a time.
Or you can have more than one form visible on your form at a time, but only
one of them can be a server form (i.e. with the runat=server attribute.)
Server forms only support posting back to themselves anyway, not to other
forms.
 
Back
Top