Basically that's my doubt, what difference there is between these two html helpers . and when you should use one or the other.
Basically that's my doubt, what difference there is between these two html helpers . and when you should use one or the other.
The difference is the parameters that take
Html.BeginForm
receives the names of the action and the controller :
Html.BeginForm("Edit", "Home")
Html.BeginRouteForm
receives the name of a route, if you have named any of them:
Html.BeginRouteForm("MyRoute")
About when to use each one, if you prefer not to follow the convention of /controller/action
you can define your own structure for urls, in that case you would create your own routes and name them so you can reference each one easily.