Using web forms, I know that there can only be one ASP.NET form per page. I implemented some implementations in which I used Javascript to add other forms to the page to support elements such as input controls (which are sent back to Logon.aspx instead of the current page). I am wondering if one single form on the page is still present in ASP.NET MVC or if this restriction has been removed.
You probably want to use regular HTML forms in your MVC code with an action attribute pointing to the corresponding controller action. This way you can have as many forms on the page as possible.
ASP.NET MVC , . , ASP.NET Web Forms, (runat="server"), MVC , .
runat="server"
(i, e., runat='server' LiteralControl HtmlForm), .
runat='server'
LiteralControl
HtmlForm
- ( <%= code blocks %>), API- MVC (, <%= Html.Button() %>), - ASP.NET, , .
<%= code blocks %>
<%= Html.Button() %>
You can have as many HTML forms as you see responsible .
Source: https://habr.com/ru/post/1698181/More articles:What is the percentage of code coverage for your project? - unit-testingКакие возможности доступны для разработки интерфейсов с интерфейсом межплатформенного интерфейса? - user-interfaceHow to update contacts in Zimbra using scripts? - scriptingFile.Move does not work properly for UNC paths - .netExchange each pair of characters in a string - stringAny open websites? - open-sourceHow can I get root access to a Mac OS X system without wiping the OS? - securityhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1698184/whats-the-easiest-waybest-tutorials-to-get-familiar-with-sqlalchemy&usg=ALkJrhgGWIqHFH2Z-3zH1dnDf4v_zE2bsgCapturing which step of an animated system cursor is displayed in Windows - c ++Saving XML data in UserSettings - c #All Articles