Asp.NET MVC - Value providers What are value providers? A Value provider is a class that ties into the request pipeline and gets values out for you, now this is fine for simple requests like when someone submits a form on your site. The built in one is quite powerful and covers simple data types all the way to creating models for you. But what if you require a value that's not part of the form data or the query string, for example a header or a cookie. Then you'll need to find or write a custom value provide r to get one of these values in your action. So today we're going to build a Cookie Value provider public class HttpCookieValueProvider : System.Web.Mvc.IValueProvider { private ControllerContext _context; public HttpCookieValueProvider ( ControllerContext context ) { if ( context == null ) ...
In a world where time is a precious commodity, our mission is simple, to empower you to automate, organize, and elevate your life with the right tools. Discover branding to establish your identity and the latest productivity tools to get work done and increase quality time.