How to create ValueProvider for MVC
I want to create a Valueprovider in ASP.Net.MVC 2 Beta. My Value source would be a JS开发者_开发百科ON
Check out JsonValueProviderFactory from MVC 2 RC Futures. Download the source ZIP; the particular file you should look at is src\MvcFutures\Mvc\JsonValueProviderFactory.cs. To hook it up, add it to the static ValueProviderFactories.Factories collection from within Application_Start.
精彩评论