Click here to Skip to main content
15,900,818 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In MVC3 view we used to write

@using (Html.BeginForm("Save", "Register", FormMethod.Post, new { id = "register" }))

i have checked if we haven't use this save button not firing.

Can anyone explain why we have to use this


Thanks
Kim
Posted
Comments
Zoltán Zörgő 17-Oct-12 7:00am    
What you mean by: "i have checked if we haven't use this save button not firing."? The helper won't make any button for you. The parameter's meanings are:
string actionName,
string controllerName,
FormMethod method,
IDictionary<string, object=""> htmlAttributes
kimberly wind 17-Oct-12 7:03am    
no i meant to say no action is occurred ..... i have save action but its not firing
Zoltán Zörgő 17-Oct-12 7:21am    
How does the generated html code look like?
Milan Mathew 19-Oct-12 16:06pm    
paste your generated html (html view source) so that we can comment on the issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900