You are on page 1of 13

ASP .

NET INTRODUCTION

Static Pages
In static Web Pages, the contents are not changed until the
webmaster creates and updates a new version of contents.
The features of static pages are as follows
Contain a collection of related documents
Perform better
Require no script programming
Share Information through the hyperlinks

Static
Web
Page

Changes

Dynamic Pages
In Dynamic Web Pages, the contents are changed by a program or
script as per the request of the user
The features of dynamic pages are as follows
Change either before or while a user is looking at the page
Refer to customization or personalization
Contain information, which is generated based on the data
retrieved from a database
Require server-side programming
The Response Time of the dynamic pages is high when compared
to static pages
Dynamic
Web
Page

Program (or)
Script

Dynamic Pages (contd.)


The two types of technique used to develop dynamic pages are as
follows
Common Gateway Interface (CGI)
Internet Server Application Programming Interface (ISAPI)
Common Gateway Interface ( CGI)
It is a standard external gateway programs to
Interface with information servers
Server
such as HTTP or Web Servers.
Docu.html
An Overview of CGI is as follows
Client
The CGI programs are executable
CGI
Program
They permit the programs to
run on a Web Server
HTTP Server
They reside in a special folder
called cgi-bin
CGI Scripts are used instead
Interne
Interne
of programming
tt

Dynamic Pages (contd.)


Internet Server Application Programming Interface (ISAPI)
An overview of ISAPI is as follows
ISAPI is quite similar to CGI
ISAPI extensions are implemented
FTP
as dynamic-link libraries (.dll)
Service
ISAPI extension are multithreaded
ISAPI
Gets loaded in memory once and
ISAPI
Filter
Stays in the same process as web
server.
WWW
Service
Web
Browser

Internet
Internet

ISAPI
Filter

CGI

ISAPI

Basic of ASP
ASP is a program that runs inside internet information server (IIS)
An overview of ASP is as follows
ASP supports scripting languages, such as VBScript and Jscript
ASP code cant be compiled
Configuration of the ASP applications require access to the
machine, which host the website
An ASP file is just the same as an HTML file
An ASP file can contain text, HTML, XML and scripts
An ASP file has the extension .asp
IIS
ASP
Page

VBScript
JScript

The advantages of ASP are as follows


Edit, Change, or add the content of a web page
Respond to user queries or the data submitted from HTML forms
Access any data or databases and returns the results to a browser
Customize a web page to make it more useful for individual users
Provide security so that ASP code cant be viewed from the
browser
Provide an option of viewing the files in any browser
Minimize the network traffic
Simplicity and speed
Example
<html>
<body>
<%
Response.Write(<h2> You can use HTML tags to format the
text</h2>)
Response.Write(<p style=color:blue>This text is styled</p>)
%>
</html>
</body>

Introduction to ASP.NET
Browser

IIS

ASP .NET
WebForms
WebControls

.NET Language
VB, C# and C++

Basics of ASP .NET


An overview of ASP .NET is as follows
The successful language used in Web Development
It is the next generation of ASP, but it is not an upgraded version
of ASP
Features of ASP .NET
Easy programming model
ASP .NET server controls enable an HTML like style of declarative
programming
Flexible and multiple-language options
ASP .NET uses the new ADO .NET. It supports entire VB, C#, C++
and JScirpt but not VBScript
Increased performance and scalability
ASP .NET is faster than classic ASP while preserving the just hit
save update model of ASP. However, no explicit compile step is
required.
ASP .NET output caching can improve the performance and
scalability of an application by eliminating the need to query the
database on every request

Advantages of ASP .NET


The advantages of ASP .NET are as follows
Clean separation between the application logic and presentation
layer
Automatic rendering of HTML
Enhanced session state management
Simple and more intuitive event-based programming model
Better performance by application logic that can be written in any
Microsoft .NET language
Simplifies the development process of Web Forms
User authentication, with account and roles
Higher scalability
XML based components
Increased Performance Compiled Code
Easier Configuration and deployment

Web Form
Web Forms contain blocks of code that are processed on the
server
An overview of Web Form is as follows
When a Web Form is requested for the first time, the entire page
is compiled
Web Forms contain page directives, which are global settings for
the page. The common page directives enable the user to turn off
the session state and ViewState management
Web Forms contain server-sides and user controls
Web Forms also contain HTML and Client-side script
MyWebform.aspx.cs
MyWebform.aspx

MyWebform

A web Forms page consists of


An .aspx file name extension
A @Page directive, which defines page specific attributes used
by the ASP .NET page parser and compiler
Example
%@Page attribute=value [attribute=value.....]%
A framework, which is denoted by the runat=server attribute
Example
<Form runat=server>
</Form>
Client-Side and server-side codes
HTML and server controls

THANK YOU

You might also like