2. ASP.NET INTRODUCTION
ASP.NET is a web development platform, which provides a
programming model, a comprehensive software infrastructure and
various services required to build up robust web applications for
PC, as well as mobile devices.
ASP.NET is used to produce interactive, data-driven web
applications over the internet. It consists of a large number of
controls such as text boxes, buttons, and labels for assembling,
configuring, and manipulating code to create HTML pages.
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
3. ASP.NET works on top of the HTTP protocol, and uses
the HTTP commands and policies to set a browser-to-
server bilateral communication and cooperation.
ASP.NET is a part of Microsoft .NET platform. ASP.NET
applications are compiled codes, written using the
extensible and reusable components or objects present in
.NET framework. These codes can use the entire hierarchy
of classes in .NET framework.
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
4. The ASP.NET application codes can be written in any of
the following languages:
C#
Visual Basic.Net
Jscript
J#
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
5. Features of ASP.NET
Microsoft's ASP.NET, one of the most successful web
application development frameworks ever, is fast becoming
mature – the newest version of it is ASP.NET 4.5.
You can use ASP.NET to fast develop and deploy highly
scalable, high-performance web applications in a managed
environment.
ASP.NET 4.5 ships as part of part of Visual Studio 2012 and
contains many new and extended features.
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
6. Some of the ASP.NET 4.5 features are,
Building and Minification feature
Strongly typed Data controls
Model Binding – Isolating the web form from the model
Value providers
Support for OpenID on OAuth Logins
Support for improved paging in ASP.NET4.5 Grid view Control
Enhanced support for asynchronous programming
Support for web sockets
Support for HTML5 form types
ASP.NET Web API
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
7. 1 .Bundling and Minification Feature
The newly introduced bundling and minification feature helps
to bundle and minimize the size of the scripts and style sheets
in your application.
This feature has a great impact on the performance of your web
application as a whole. You now have a
System.Web.Optimization namespace that provides support for
bundling and Minification of files.
Once you create a new project in ASP.NET 4.5, you'll notice
these lines in your Global.asax file:
protected void Application_Start()
{
//Some code
BundleTable.Bundles.RegisterTemplateBundles();
}
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
8. 2 . Strongly Typed Data Controls
ASP.NET 4.5, have data controls that can be strongly typed, That
will get intellisense where user just need to assign the ItemType
property to a model that is going to be associated with the data
controls used in “.aspx” pages.
Here is a snippet of code that illustrates how you can use this:
<asp:TemplateField HeaderText="Name" >
<ItemTemplate>
<%# Item.Name.ToString() %>
</ItemTemplate>
</asp:TemplateField>
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
9. 3 . Model Binding - Isolating the Web Form from the
Model
The Model binding feature in ASP.NET 4.5 enables users to develop Web
forms, that are independent of the Model that populates the view.
The biggest advantage of using Model Binding in ASP.NET is that the user
can easily unit test the methods.
In ASP.NET 4.5 support for model binding is provided through the usage of
the ‘System.Web.ModelBinding’ namespace.
This namespace contains value provider classes like ControlAttribute,
QueryStringAttribute, etc.
All these classes are inherited from the ValueProviderSourceAttribute class.
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
10. 4 . Value Providers
ASP.NET4.5 provides many Value Providers that can be
used to filter data.
Query string
Session
Cookie
Control Value
User can also have their own custom value providers.
ASP.NET OVERVIEW - NITHIYAPRIYA
PASAVARAJ
11. 5 .Support for OpenID in OAuth
Logins
ASP.NET 4.5 provides support for OpenID for OAuth
logins .
User can easily use external services to login to their
application.
ASP.NET 4.5 enables us to register OAuth provider in the
App_Start/AuthConfig.cs file.
We can also use this data dictionary to pass additional data.
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
12. 6. Support for improved paging in ASP.NET
4.5 GridView control
Paging support in ASP.NET 4.5 GridView control has
been improved a lot.
“GridView.AllowCustomPaging” property provides great
support for paging and sorting through large amounts of
data efficiently.
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
13. 7. Enhanced support for
asynchronous programming
ASP.NET 4.5 provides excellent support in asynchronous
programming .
User can now read and write HTTP requests and responses
without the need of OS threads.
Also, you have support for two new keywords - await and
async.
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
14. 8.Support for web sockets
HTML5 WebSockets allow us to perform duplex
communication between the client browser and the web
server.
ASP.NET 4.5 and IIS 8 provide support for WebSockets
protocol where user can now leverage WebSockets in their
ASP.NET web applications.
Support for web sockets is provided through the
“System.Net.WebSockets” namespace.
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
15. 9.Support for HTML5 form types
ASP.NET 4.5 provides excellent support for HTML5 form types.
The following are the list of new controls available in HTML5:
email
url
number
range
Date pickers( i.e., date, month, week, time, datetime, datetime-local)
search
color
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ
16. 10. ASP.NET Web API
Web API is included in ASP.NET MVC 4 and ASP.NET
Web Forms, which helps us to build and consume HTTP
services easily.
Microsoft's ASP.NET is a language and platform-neutral
and interoperable technology.
It is one of the most successful web technologies till date.
It has matured over the years with the latest version,
ASP.NET 4.5, having a number of new features and
enhancements.
ASP.NET OVERVIEW - NITHIYAPRIYA PASAVARAJ