What is new in ASP.Net 4.0 Part-2

Shrinking Session State ASP.NET provides two default options for storing session state across a Web farm: a session-state provider that invokes an out-of-process session-state server, and a session-state provider that stores data in a Microsoft SQL Server database. Because both…

What is new in ASP.Net 4.0

Web.config File Refactoring The Web.config file that contains the configuration for a Web application has grown considerably over the past few releases of the .NET Framework as new features have been added, such as Ajax, routing, and integration with IIS…

The Task-based Asynchronous Pattern

Naming, Parameters, and Return Types Initiation and completion of an asynchronous operation in the TAP are represented by a single method, and thus there is only one method to name. This is in contrast to the IAsyncResult pattern, or APM…

What is new in Ajax 4.0

jQuery Included with Web Forms and MVC The Visual Studio templates for both Web Forms and MVC include the open-source jQuery library. When you create a new website or project, a Scripts folder containing the following 3 files is created:…

Saving Image from Image URL

Overview Create image object and save it into file by URL. Depending on your needs it can be two solutions: Solution 1 when you need to make some manipulations with the image object (resize, crop, etc) before saving to disk:…

Screen Capture using C#

This code demonstrates how to get a screen shot of the entire desktop, or a particular window, using .NET (and a few API functions). Using the class is simple – there are four methods * public Image CaptureScreen() Creates an…

BING Maps integration

Follow the below steps to Integrate BING Maps in your ASP.Net application Step1: Create a C# ASP.NET Empty Web Application in Visual Studio 2010. Step2: Add a Default ASP.NET page into the application. Step3: Add a table to the page…

Context based Asynchrony

Asynchronous methods depend on their context for the exact semantics of their resumption after an await. A UI context is usually single threaded, which means that only one asynchronous operation can be executing on it at any given time. This…