DEXTUpload.NET.Mvc
Class FileUploadValueProviderFactory
- The minimum supported version
- 5.0.0.0
- The minimum support environment
- .NET Framework 4.0
- Explanation
-
This is a factory class for creating value provider object for use with the DEXTUpload.NET Professional product in ASP.NET MVC environment.
The value provider need to be registered using the "FileUploadValueProviderFactory" class in the "Global.asax" so that it is possible to do file processing using the "DEXTUpload.NET.Mvc.DEXTPostedFile" class.
# Global.asax.cs public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); // Add the provider for using the DEXTUpload.NET Professional component in the ASP.NET MVC environment. ValueProviderFactories.Factories.Insert(0, new FileUploadValueProviderFactory()); } }
- Type
-
public class FileUploadValueProviderFactory : ValueProviderFactory
- Methods
-
GetValueProvider
-
Returns the value provider object of the specified controller context.
-
Type
public override IValueProvider GetValueProvider(ControllerContext controllerContext)
-
Parameters
Name Type Explanation controllerContext System.Web.Mvc.ControllerContext An object that contains information about the HTTP request that matches the routing and the controller in the ASP.NET MVC environment. -
Return
The "System.Web.Mvc.IValueProvider" object that has implemented methods which the value provider need.
-