Saturday, March 31, 2012

Server side form tags

I recently ran into the following exception that I received when trying to add 2 forms to a single page:

System.Web.HttpException: A page can have only one server-side Form tag.
Does this mean that I can not use more than one form on an aspx page? Is there a way around this? This seems like it would be very restrictive if there isn't a way to handle more than one form per page...

Thanks.Correct, 1 server form per page.. you can have as many client forms as you want but just 1 server form.

It really shouldnt be an issue if you are programming the .NET way, when doing asp.net pages.

Paul Wilson does have a control that allows multiple server forms, i think its in the control gallery.

No comments:

Post a Comment