This code will always be provided by the current controller.
<%=( Url.RequestContext.RouteData.GetRequiredString("Controller")) %>
Obviously you can use it without <% = like this
Html.BeginForm( Url.RequestContext.RouteData.GetRequiredString("Controller")) , "ActOnChoosenPerson")
It looks more awkward, but your model does not need to know what the controller is calling.
Mark Dickinson Jun 23 '09 at 9:30 a.m. 2009-06-23 09:30
source share