-
PageRouteHandler resides in System.Web.Routing and implements IRouteHandler. It is designed to be a basic handler for Routes defined in an application, eliminating the need to implement custom IRouteHandlers when there are no business rules to validate. It can also check for access to physical files...
-
What is output caching? Output caching is a way of caching the generated HTML created from your ASP.NET pages. Output caching can cache an entire page or fragments of a page. The first request to a page is served dynamically, and then any subsequent requests are served from the output cache until the...
-
One great new feature in .NET 4.0 is the Stream.CopyTo method. In order to copy a stream in .NET 3.5 we needed to use something like: public static long CopyStream( Stream source, Stream target) { const int bufSize = 0x1000; byte [] buf = new byte [bufSize]; long totalBytes = 0; int bytesRead = 0; while...
-
Good post about one of the new features of Entity Framework 4.0. In the upcoming version, entities will be able to self track changes and implement them using the ObjectContext. This is tremendously helpful when passing entities between tiers and then, committing changes to the database. Read it here...