Re: forms inside of other forms?



"Andy B" <a_borka@xxxxxxxxxxxxx> wrote in message news:%23e1QqEBZIHA.4448@xxxxxxxxxxxxxxxxxxxxxxx

I have an html form that is supposed to be inside the main aspx page form. How do I do this so it will work? I have no way of changing the form (nested form) since its written in javascript and is auto generated...

Forms can't be nested i.e. you can't have a form inside another form, e.g.

<form id="form1">
<form id="form2">

</form>
</form>

You can have as many forms as you like so long as they aren't nested, e.g.

<form id="form1">

</form>
<form id="form2">

</form>

However, only one form can be an ASP.NET form, e.g.

<form id="form1" runat="server">

</form>
<form id="form2">

</form>


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

.