I had created a asp web-form on which another form is posted. when ever I run an error occur which state "only one form tag will be used in form application". Is there any other possible way that I could use two form on single web-form?
Asked
Active
Viewed 356 times
0
-
This is answererd [here](http://stackoverflow.com/questions/7544454/can-we-use-multiple-forms-in-a-web-page). – Shishdem Mar 12 '15 at 11:09
1 Answers
3
No, .NET will strip out other form
elements, and raise an exception (as experienced) when more than one server-side referenced form
is specified; but this is fine, usually - you can put your form parts in panels and controls and have buttons applicable only to those elements (for things like validation and whatnot) but otherwise you can differentiate on the server-side.

Grant Thomas
- 44,454
- 10
- 85
- 129
-
-
Then you still have multiple forms on the page - you can't do this (easily/properly, with WebForms), so remove one form, have your root form, and use `Panel` and such so as I said to separate concerns. – Grant Thomas Mar 12 '15 at 11:35