Is there a way to get an instance of the Html-Helper within a custom Model-Binder?
E.g.:
public class TranslationModelBinder : DefaultModelBinder
{
public override object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
{
// HtmlHelper helper = new HtmlHelper(?,?);
object model = base.BindModel(controllerContext, bindingContext);
}
}
How can I get the two needed arguments?
Thx for any tipps!
sl3dg3
Even if you could, it would be wrong.
HtmlHelper is a tool for the view where it renders the Model while the binder does the opposite.