In Asp.net Page we can host exactly one server form. I’ve found one good article on MSDN which related to the Form Based Programming in ASP.NET. So We can employ multiple forms in a asp.net page and only one of them can have the runat attribute set to server. The request for the page is therefore processed as usual using the code built in the page base class. Temporary class for the page is generated, compiled and finally loaded.
You can find the Article at http://msdn.microsoft.com/msdnmag/issues/03/05/CuttingEdge/default.aspx
Multiple Forms in ASP.NET
December 17, 2007
Comments on: "Multiple Forms in ASP.NET" (2)
[...] dcaro wrote an interesting post today onHere’s a quick excerptIn Asp.net Page we can host exactly one server form. I’ve found one good article on MSDN which related to the Form Based Programming in ASP.NET. So We can employ multiple forms in a asp.net page and only one of them can have the runat attribute set to server. The request for the page is therefore processed as usual using the code built in the page base class. Temporary class for the page is generated, compiled and finally loaded. You can find the Article at http://msdn.microsoft.com/msdnmag/issues/03/05/CuttingEdge/default.aspx [...]
Way to go Microsoft for taking a simple trivial problem like multiple forms on a page and making it out to be like the ultimate holy grail of science. – Arunabh Das