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
Post a Comment