Is the single <form runat=“server”>-element requirement really necessary for ASP.NET WebForms?

StackOverflow https://stackoverflow.com/questions/1673652

  •  16-09-2019
  •  | 
  •  

Question

Looking at some of the changes coming to WebForms in ASP.NET 4.0 I can see many improvements that give developers even more control over the output. Some of these improvement have been a long time coming, and for some time it seemed that it wasn't even possible. It made me wonder if the current model with the single form element that runs on the server is really the only possible way.

Why couldn't the ASPNET WebForm architecture work with multiple forms that all run on the server?

Imagine if you could architect this change. How would it impact the way we write codebehind today? Would it introduce extra complexity? Would it change the way event handlers work, or validation, or ASP.NET Ajax with the ScriptManager and UpdatePanel controls?

No correct solution

OTHER TIPS

I think .NET mvc is MS making the change you speak of.

From a ASP.NET book Im not going to mention because I'm not sure if I'm allowed to, it says that before with ASP you could put 2 forms in the same page so some people in the same webpage could put a form for authentication for registered users and a form for creating an account for new users, something you cant do in ASP.NET because of the limitation of the framework. So you should be able to do that again if they would add that possibility in ASP.NET

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top