You are on page 1of 16

Internet Technology

Client
Web Server
Htm/html

Problems with Internet Tech

Cannot interact with external resources like


if the information is in the form of flat files
or databases or in the n/w
So we need a Technology to contact with
the external resources and to provide the
the response back to the client so for this
we got a new technology which is SERVER
SIDE TECHNOLOGY

SERVER SIDE TECHNOLOGY

1st Solution is CGI (COMMOM


GATEWAY INTERFACE )
Architecture

Client 1

P1

C G I ENGINE

Client 2
P2

FLAT FILE

DB

Advantages

Process is fast
Performance is very efficient

Disadvantages

Resources of the server are blocked


So we need a tech to contact the external
resources and to provide the response back
to the client without providing burden to
the server.
So we use Servlets Technology

2. SERVLETS TECHNOLOGY

Architecture
FLAT FILE

Client 1
SERVLET ENGINE

DB

Client 2
Process

ADVANTAGES

No burden to the server

DISADVANTAGES

Performance is slow
So the requirement is a technology to
contact the external resources and to
provide the response back to the client
without providing burden to the server and
to clients

SERVER PAGES TECHNOLOGY

Architecture

FLAT FILE

Client

SCRIPT ENGINE
DB

Created
Dynamically

SERVER PAGE

1. Sun Microsystems

2. Oracle Corporation

JSP
PL/ SQL

3. Microsoft

Active server pages

All these 3 technologies are having NO BURDEN TO


THE SERVER

WHY ASP.NET TECHNOLOGY?

ASP

HTML USER INTERFACE


JAVASCRIPT Client Side Validations
VB SCRIPT Server Side Validations
ASPBUILT IN OBJECTS request, response
COM to contact the external resources

DRAW BACK OF ASP

Suppose you have 100 clients requesting


for same page if you send a request for the
1st time or Nth time it is going to do the
same process.

ASP.NET ARCHITECTURE

Client

Web Server

Complied

.aspx

If the request for the nth time or 2nd time

Client

Web Server

Complied

.aspx

Programming Model of ASP


USER NAME
PASSWORD

LOGIN
Validate.asp

The data can be submitted in 2 ways


1.

GET METHOD : To Collect the information we have to use


REQUEST.QUERYSTRING(.)

2.

POST METHOD: REQUEST.FORM(..)

PROGRAMMING MODEL OF ASP.NET


USER NAME
PASSWORD

LOGIN

The data is submitted to the same page only.


Submitting of the data to the same page is called
AUTOPOST BACK.
After the information is provided it should
validate the given information.
You should decide whether the page is requested
for the first time or the nth time.

For this you depend on

If Page.isPostback = False then the page is requested for the


1st time
If Page.isPostback = True then the page is requested for the
nth time or second time

You might also like