Posts

Showing posts with the label ASP.net 4.0 new features

ASP.net 4.0 Ajax

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: jQuery-1.4.1.js – The human-readable, unminified version of the jQuery library. jQuery-14.1.min.js – The minified version of the jQuery library. jQuery-1.4.1-vsdoc.js – The Intellisense documentation file for the jQuery library. Include the unminified version of jQuery while developing an application. Include the minified version of jQuery for production applications. For example, the following Web Forms page illustrates how you can use jQuery to change the background color of ASP.NET TextBox controls to yellow when they have focus. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowjQuery.aspx.cs" Inherits="ShowjQuery" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E...

ASP.net 4.0 Core Services

ASP.NET 4 introduces a number of features that improve core ASP.NET services such as output caching and session-state storage. 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 7. This has made it harder to configure or start new Web applications without a tool like Visual Studio. In .the NET Framework 4, the major configuration elements have been moved to the  machine.config  file, and applications now inherit these settings. This allows the  Web.config  file in ASP.NET 4 applications either to be empty or to contain just the following lines, which specify for Visual Studio what version of the framework the application is targeting: <?xml version="1.0"?>   <configuration>    <system.web>   ...