You are on page 1of 26

ASP.

NET

BY

MOHIT RAMCHANDANI
B. TECH. PRACTICAL TRAINING SEMINAR
Keyprompt Technologies Pvt. Ltd. is a India based software
development company focused on delivering the best and
most cost-effective solutions to our clients in areas such as
Management Information System, e-business, CRM, and Web
Applications.

Keyprompt is not only in the software development but also


education is also our prime focus to make people more IT aware.
In the training cell, Keyprompt offer professional environment to
students and stakeholder for better learning.
Active Server Page Dot Net
 ASP.NET is a Programming model and
infrastructure which provides frame for web
application .
 In ASP.NET we can build dynamic web sites,
web applications and web services.
 ASP.NET supports N-TIER architecture .
 ASP.NET aims for performance benefits over
other script-based technologies.
ASP and ASP.NET
 ASP is interpreted, ASP.NET is compiled
 Better language support
 Programmable controls
 Event-driven programming
 XML-based components
 Higher scalability
 Easier configuration and deployment
 User authentication, with accounts and roles
The Common Language Runtime (CLR) is a core
component of Microsoft's .NET

In CLR , Source Code is converted into byte code that is


called CIL (COMMON INTERMEDIATE LANGUAGE )
ASP.NET with C#

 Its development team is led by Anders Hejlsberg.


The most recent version is C# 4.0, which was
released on April 12, 2010.
 C# is the new language with the power of C++
and the slickness of Visual Basic.
 C# is intended to be a simple, modern, general-
purpose, object-oriented programming language
 Less coding is required in c# as compared to VB.
SQL SERVER 2005
•Microsoft SQL Server is a database server produced by
Microsoft.

•It is integrated with Visual Studio .

•It included native support for managing XML data, in addition to


relational data.
Advantage of ASP.NET
•ASP.NET is part of the .NET framework
The .NET framework comprises over 3,400 classes that we
can employ in our ASP/NET applications . We can use the
classes in the .NET framework to develop any type of
application
•ASP.NET pages are compiled
When an ASP.NET page is first requested , it is compiled
& cached on the server. All ASP.NET code is compiled than
interpreted , which permits early binding , strong typing &
just in time (JIT) compiling to native code
•XML based
ASP.NET configuration setting are stored in XML based
files , which are human readable & writable . Each one of our
applications can have a different configuration file & we can
extend the configuration scheme according to our necessities.
•Code Behind Logic
The main problem with ASP classic pages is that *.asp
page does not yield moduralized code . Both HTML & Script
are present in a single page . But Microsoft\s ASP.NET
implementation contains a new-fangled method to break up
business logic code from presentation layer

•ASP.NET pages built with Server Controls


We can easily build complex web pages by bring together
the pages out of ASP.NET server controls . E.g. , by adding
validation controls to a pgae , we can easily validate from
data
Disadvantages of ASP.NET
•One main disadvantage is that ASP.NET applications can
only run on Windows platform
• In ASP Classic, the damage caused by malicious code
running on the server was somehow limited by the built-in
limitations of the ASP Classic object model. In ASP.NET,
due to the number of classes exposed by the .NET
framework, malicious code has the potential to be much
more damaging and dangerous.
• The control of the code is inbuilt with the web server
controls so you have no much of direct control on these
controls .
•It is expensive.
Security Issues
There are two closely interlinked concepts at the heart of security
for distributed applications - authentication and authorization.
Authentication:
•is the act of establishing or confirming something (or someone)
as authentic.
•In ASP.net authentication may be in code or delegate
authentication to other authorities .

Authorization:
•Authorization is the process of allowing an authenticated user
access to resources.
•User is authorized according to their role .

Authentication is always precedes to Authorization.


Authentication

ASP.NET provides three different authentication modes


• The windows Authentication provider lets you authenticates
users based on their windows accounts. This provider uses IIS to
perform the authentication and then passes the authenticated
identity to your code. This is the default provided for ASP.net.
• The passport authentication provider uses Microsoft's passport
service to authenticate users.
• The forms authentication provider uses custom HTML forms to
collect authentication information and lets you use your own logic
to authenticate users. The user's credentials are stored in a cookie
for use during the session.
Authorization
•Authorization determines whether an identity should be granted
access to a specific resource
In ASP.NET, there are two ways to authorize access to a given
resource:
•File authorization   File authorization is performed by the
FileAuthorizationModule . It checks the access control list (ACL)
of the .aspx or .asmx handler file to determine whether a user
should have access to the file. ACL permissions are verified for
the user's Windows identity (if Windows authentication is
enabled) or for the Windows identity of the ASP.NET process.
•URL authorization   URL authorization is performed by the
UrlAuthorizationModule , which maps users and roles to URLs
in ASP.NET applications. This module can be used to selectively
allow or deny access to arbitrary parts of an application
(typically directories) for specific users or roles.
AJAX
 Asynchronous JavaScript and XML
 AJAX is a group of interrelated web
development techniques used on the client-side
to create interactive web applications.
 With Ajax, web applications can retrieve data
from the server asynchronously in the
background without interfering with the
display and behavior of the existing page
SCRIPT MANAGER
•Script Manager control is the parent control that needs to be there on every
page wherever we are trying to use ASP.NET AJAX controls.
• Script Manager control manages client script for AJAX enabled ASP.NET
pages.
• This control enables client script to use the type system extensions and
support features for partial page rendering, web service calls etc.
EXAMPLE:
Questions ???

You might also like