Browse by Tags
All Tags »
ASP.NET MVC (
RSS)
In the .NET world, all HTTP requests, whether they be for web services (XML, WCF, Web API), pages (Web Forms and MVC), etc, are processed by a handler. Basically, a handler is a particular implementation of the IHttpHandler interface, and requests are...
OK, I know there are already a number of these, but since I didn’t actually know any, I wrote my own library. I was trying to achieve something like this in a simple way: 1: RouteTable.Routes 2: .ActionWithDefaultParameters<BlogController>(x =>...
Since this blog started, back in 2008, I wrote a lot of posts. I’d say some are still up to date. I picked a few of them, those I’m more proud of, in no particular order. ASP.NET Web Forms: Using the ASP.NET Health Monitoring Provider to Secure Your Application...
OK, so let’s talk about validation. Most people are probably familiar with the out of the box validation attributes that MVC knows about, from the System.ComponentModel.DataAnnotations namespace, such as EnumDataTypeAttribute , RequiredAttribute , StringLengthAttribute...
One thing I didn’t refer on my previous post on ASP.NET MVC CRUD with AJAX was how to retrieve model validation information into the client. We want to send any model validation errors to the client in the JSON object that contains the ProductId , RowVersion...
I know that I have not posted much on MVC, mostly because I don’t use it on my daily life, but since I find it so interesting, and since it is gaining such popularity, I will be talking about it much more. This time, it’s about the most basic of scenarios...
The Data Annotations framework, introduced in .NET 3.5, and enhanced in .NET 4.0, is likely becoming the basis for attribute-based validation in .NET. I like about it the fact that it is extensible and that it can be (and indeed it is) used in a lot of...
1: public sealed class ServiceLocatorDependencyResolver: IDependencyResolver, IServiceLocator 2: { 3: #region Public constructor 4: public ServiceLocatorDependencyResolver(IServiceLocator serviceLocator) 5: { 6: if (serviceLocator == null ) 7: { 8: throw...
As you may already know, ASP.NET 4.0 brought along with it a new mechanism to execute methods before the application start event (the Application_Start method): the PreApplicationStartMethodAttribute . This attribute, when applied to an assembly, indicates...
At last! Go get it from here .
More Posts
Next page »