I have a form which is part of a partial view and I need to submit it to a different location based on the context of the view containing the form. I can't use Html.BeginForm because the form has a multipart/form-data enctype so having the action filled in automatically is out the door.
Is there a simple variable I can call to fill in the current controller/action as my form action? I see that ViewContext.RouteData.Values["action"], ViewContext.RouteData.Values["controller"] will return those values, but is there a better accessor?
Thanks!