asp.net mvc - What the parameters for Html.BeginForm do in ASP.MVC4? -


i trying understand this:

 html.beginform("login", "account", formmethod.post, new { returnurl = viewbag.returnurl } 

can explain me or point me page can find information on parameters for?

you dont have go anywhere find this. f12 in vs

public static mvcform beginform(this htmlhelper htmlhelper, string actionname, string controllername, formmethod method, idictionary<string, object> htmlattributes); 

summary: writes opening tag response. when user submits form, request processed action method.

parameters: htmlhelper: html helper instance method extends.

actionname: name of action method.

controllername: name of controller.

method: http method processing form, either or post.

htmlattributes: object contains html attributes set element.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -