forms inside of other forms?

A

Andy B

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...
 
S

Scott M.

You can not have a form in another form and an .aspx page must have a
design-time runat=server form.
 
M

Mark Rae [MVP]

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>
 
A

Andy B

I have a poll that is contained inside a form that is autogenerated that i
need set inside my may aspx <form> tag...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top