MVC notes (1)

Abstract: MVC notes


Html.BeginForm

View
1. When used with @using is not required at the end plus Html.EndForm
2. After customizable to ActionName, ControllerName, FormMethod post / get ( if not set the default is the current)
3 to use input type = button submit time, it is necessary to use two beginForm ActionName are set different in different Action to control the Controller

the Controller
1. Action for different, may be set the same ViewResult Page, but also with different return Model




Original: Big Box  MVC notes (1)


Guess you like

Origin www.cnblogs.com/chinatrump/p/11512802.html