1. Specify form submission method and path, etc.
@using (Html.BeginForm ("Index", "Home", Formmethod.get, new {name = "Nbform", id = "Nbform"}))
2. Specify how the form is submitted as data
@using (Html.BeginForm ("Importexcel", "Stock", FormMethod.Post, new {enctype = "multipart/form-data"}))
Note that it is sometimes necessary to add {id=1} or the index of the current page is automatically appended to the form when you click on the index above the first page, and if you search at this point, you may get an "out of index value" error message
@using (Html.BeginForm ("Index", NULL, new {id = 1}, Formmethod.get))
3, the following action can prevent the submit link after the parameter
@using (Html.BeginForm ("adddiybilloflading", "billoflading", new {id = ""}, FormMethod.Post, new {name = "MyForm", id = "MyForm"}))
That is, Routevalues's id= ""
@using (Html.BeginForm ()) Parameter example