Ibtisam Tanveer
Ibtisam Tanveer

Reputation: 117

using two forms in single web form

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?

Upvotes: 0

Views: 413

Answers (1)

Grant Thomas
Grant Thomas

Reputation: 45058

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.

Upvotes: 3

Related Questions