c# - How to get FormValueProvider instance in a Custom Model Binder in ASP.NET MVC 2 -
I am using MVC 2 RC I have a custom model binder, which is posted in MVC 1.0 The prices were redistributed:
var value = binding content box. Value provider Where (x => x.Key.StartsWith ("prefix")); Foreign Currency (Variable Values in Values) {/ * Something * /}
In Version 2, I can not do this now. I think I need to use FormValueProvider in my custom model binder in any way, but I do not know how to get it.
The value provider is a read / write property that you have tried to do:
var formValueProvider = new form-value provider (controller consort); BindingContext.ValueProvider = formValueProvider;
I discussed this, but I have not used myself to be honest.
Edit: I'm not sure if someone has a good solution for this scenario, but I think you're the Controller Consort. Can reach. HttpContext.Request I know this does not seem right, but if your needs are so low I suspect that there is only one way to get them.
Comments
Post a Comment