0% found this document useful (0 votes)
94 views15 pages

Summary About ASP

ASP.NET is a web framework that generates and serves dynamic web pages in cooperation with the IIS web server. It processes HTTP requests, creates dynamic responses using different file types like ASPX and ASHX files, and sends them back to the client browser. ASP.NET provides features like caching, global variables, and the HTTPContext object to help build scalable and high performing websites and web applications.

Uploaded by

sudheersimple
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views15 pages

Summary About ASP

ASP.NET is a web framework that generates and serves dynamic web pages in cooperation with the IIS web server. It processes HTTP requests, creates dynamic responses using different file types like ASPX and ASHX files, and sends them back to the client browser. ASP.NET provides features like caching, global variables, and the HTTPContext object to help build scalable and high performing websites and web applications.

Uploaded by

sudheersimple
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 15

SUMMARY

ABOUT ASP.NET
ASP.NET powers
websites. It generates
and serves web pages in
cooperation with the IIS
web server.
It tests requests,
creates responses
and sends them to
visitors.
File types. ASP.NET
projects have different
fie t!pes. "an! websites
use ASP# fies$these
represent pages. %ut we
aso have AS&# fies$
these are simpe
handers.
ASHX
Write. 'ith ASP.NET we
receive a request from
the web browser over
the networ(. 'e then
generate a response to
send bac(. Severa
methods are avaiabe.
Write WriteFile BinaryWrite WriteFile,
Imae O!tp!tStream "#mpleteRe$!est
Ra%#r synta&. 'ith new
versions of )isua Studio,
we can write &T"*
direct! inine with +,
code. This ma(es it
easier to create ASP.NET
pages. +haracter escapes
are not needed.
Ra%#r Synta&
Http"#nte&t. This t!pe
is essentia to ASP.NET
deveopment. It provides
functionait! reated to
the &TTP protoco. It is
needed in man! projects.
Http"#nte&t.Re$!est Timestamp '#(al
)#st
Tra(in is an eas! wa!
to buid diagnostics and
timings into a website. It
is aso eas! to disabe if
we need more
performance from a site.
It is an effective
diagnostic mechanism.
Tra(e
Files. &ow can we
hande fies on the oca
dis( on an ASP.NET
website- 'e use
.ie.AppendA*ines. This
e/ampe impements a
ogging mechanism that
records visits.
Files
Pat)s. 0ften the path
received from the cient
on the networ( is not the
same as the path on the
oca server. In ASP.NET
we d!namica! rewrite
paths.
Re*ritePat) !rlMappins Ser+er.Trans,
er -l#.al.asa& MapPat) P)ysi(alAppli(a
ti#nPat)
/!ery. 'hen we access
an ASP.NET website with
a quer! string in the
12*, such as page.asp/-
test34, the 5uer!String
coection ma! be used to
access the 6test6 vaue.
/!eryStrin Parse /!eries
"a()in is a arge part
of performance. It is
perhaps the argest part.
'e focus on improving
website performance
with caches$on both the
cient and server.
HTTP "a()e
Hea0ers Set"a()ea.ility "a()e
E&pirati#n O!tp!t "a()e
-l#.al +aria.les. There
are severa wa!s we can
use goba variabes in
ASP.NET websites. This
can ma(e projects much
easier to deveop.
-l#.al 1aria.les
HTTP )ea0ers are an
instrumenta part of the
web. +ient software
sends requests in &TTP
header format. A web
server must respond with
the appropriate &TTP
response headers.
"#ntentType Re0ire(t,
Re0ire(tPermanent Re$!est.Hea0ers I
P
A00ress Ser+er1aria.les HttpW#r2erRe
$!est
Wit) A3AX, we update
pages on the cient7side
without needing to
change the entire page.
'e update parts of
pages. &ere we tie the
Page8*oad event to the
A9A# technique.
Pae4'#a0
"#n,i!rin an ASP.NET
website is frustrating.
These e/ampes span
severa configuration
topics.
'e change error outputs,
how sites are compied,
what modues are
oaded,
and more.
(!st#mErr#rs Is5e.!inEna.le0 HTT
P
Pipeline Pre(#mpilati#n appSettins X6
Aspnet61ersi#n Rem#+e )ttpM#0!les
We. appli(ati#ns. I
found that a web
appication is sight!
more efficient than a
website project. .ewer
chec(s are needed for
requests.
We. Appli(ati#ns
We. F#rms. These
enabe us to quic(!
create web pages. This
feature is object7
oriented. It ma(es web
page generation code
easier to maintain and
improve.
"#ntr#ls in We.
F#rms. +ontros are
used to represent page
eements. 'e can insert
pain te/t into a website
using the ASP.NET *itera
mar(up or the
*itera+ontro eement.
asp
'iteral 'iteral"#ntr#l Html'in2 HtmlMet
a SiteMap
Pr#perties. The I: of
an! eement can be
removed. 'e set the I:
to nu to do this. )isibe
enabes us to use a
tempate and remove or
add eements from it
without creating them in
code.
Rem#+e I5 1isi.le
Master paes separate
the tempate from more
specific content sections.
'e describe this
separation mode in more
depth. 'e compare it to
aternative modes.
Master Paes
Mis(. These tutorias
cover man! aspects of
web deveopment.
Server7side comments
can be used to remove
te/t from pages before
the! are sent, reducing
page si;es.
Ser+er6Si0e "#mments Ser+er6Si0e
In(l!0es
T##ls. Ama;on
+oud.ront is used to
host the pages on this
website. In the past, I
used .idder to test its
pages. I aso deveoped
an ASP.NET .bat fie to
oca! run pages.
Ama%#n "l#!0Fr#nt Fi00ler ASP.NET
5e+el#pment, .at
ASP.NET is not needed
for static pages. A
reguar +, program can
generate them. %ut for
handing requests, and
reading from e/terna
data sources, ASP.NET is
idea.

You might also like