Sudhkar Sharma (Asp - Net Notes) | PDF ms
Z/orws> . O
* / smd ica object
\pitex4+ 3 labad, 5 GET /post request: & }lage TsPestBack
oO
we Page events; O
A typical ASP-NET Page Comprise of several events Anat O
SPEGEY Awe actions tobe performed fm vaxious Htuahons
however the eters evenk fer gage Ie "Page Lead"
te Request types t-
Every ASPNET Page ~vtiponds to hootypes ok yequert +
2) Ger :
b) post e
“The “get request coutrsls the page acktoms whemewer Chiemt ~
requests the page der the frst He from cexver- :
“The “post “request controls Ye page actions whemel er wetc
o
vast data +o Sexver-
tdewriy the equa Ayre Ha rage PL -
You cam
ung he property " Page. TspostBack™YL _ s = @
a & writing eveats ~for page :- 7
c Th you are wing wine documentation then the events
- of a Paqe must be yorittm inthe head Sechon by usin +
the +aq
© Program: writing eveuss :
<1 @ Page Lomquage = "CH" 7. > i
2) DOCTYPE htwd > I
‘ i
< suript > rumat =Ysexver’ >
Protected void + Page_Load -(objeck semdex , EventArgs *)
x
C1 age. Ts PostBack)
€
3
the
[biTigele Text = "weltomre te Gt ASP.NET";
Sring0;
$ \biTiHe -Texr=" Page Posted ow : DateTime -Now Te
i
|
|
|
}
|
- |
“8 ZY soxipt>
|
‘gv Dewmo > |
eur>
Z asp: BOW jd = ~ LawSubwit + yumabs= “sexver" teXl =
"Subwit" /
C
2 /ody> |
ok Doreloping the wek Applicodvona using Visual Sudo.
«ft
A doJabase ples - mdf ov sdf
a App stork i (qllackow sty sexvebial clase. wehun a pangrar stab.
He will qutrmabically Stas:
# Conkewk © Cgubaing vom dynamic filet Bx tmage, Corsyle Meets
Oo
wmode > Class veiponpble fpr communication with de
Soript : Dynom'e giles tke Ts,
pw Prevowmt > Temp Lakes fy ea
OOo
He Glaloas- ax + Pobal applcation at fle Th ae dedore
any value in gyig, we com access iy farm any loco,
Th cowie gyobal declaratrons 5
® web. cenbig -
Th cevsains Yobol canpqeucad ion & 5
Cc oF . Save ond opem Its amd goto he 4 ba
Befouk A 4 A Your webate fs there& Creating ASP.NET applications urng. visual studio. ®
\lisual studto #% om TDE CIwepetd dev env) fpr dty-
Howey or jem the lodet vertiow
~eboping NET applicab'ons -
c ASP.NET is am opem Source amd cam be uted with amy one of
co | he following development tools
Co L.wWiwek ASP. NET Templode, %
2. ASP.NET “Tvdelsemse Genexator
3. -Miouesopt visuad Shudio
Mises visual web developer ex press
GodeGeox “Dee — cat is dexived . from deb . ct
Macromedia. omerite
T- Miowsett expression web
B- Wosryt norepoint AO qner
(a Monodevelop
Y°. Ghoxp develop
wo. Etkbd for Ase ner
1D. Adobe Dreamweaver
be Stadium
Me Telenwik-
He Gxtating a ned wee opp hicariow
1. paw VS 201 . Runs cdemvmenv
2 gore Ale mae > we project
4 Select visuad CH Choose, > wee Coreg
Selecr the yeumplare 3 Asp. weT Wee Applicadvows
ls Specitm name and \ecottow py opplication
Ss. Bok oF
a ee at Sttect you +o geleck feuplate
af Selec “Webborme”
ve Seeck Checkbox For “Wwebtenns! Os Yebeceneesus Chick oK
* File sytew 5.
ASt NET Appcodiow file sytem
A typical ASP NET 4-5 Agplicodiow comprises of the pefloioing O
file amd foldeu - ~
& Bile folder Deseviptrow
4. Proportion Gwtains ascembly ino
4. Reberernces Cowtains collection ob nametfaces oY asseni-
-bKO (liproxes) Usted im application -
ee Canteins femplete filer thak axe used te
Crtade amd momage accounts « (logins Regi ster ete) C
c
App-Dae Cowtains loco) dosabase Hla
C-mag, Sah)
5. App. Stax Cowteins collection of classes thos axe ivde
-wded ko wun ow application Staxt
6. Cowrent Cawroims all won-dynamic filer (images, ess)
¢. Pous Covseine oll fonts justolled fer the applica-
. ~ow 2)
t Models Cevtaine a collections of class that axe ¢ a)
oe
vuponmble 4or interacting t database
a. Sone Cowains all dynansie files Wee Ss ,Tqyxeny
o. Global as0% Uwrans qiobal declaxaHous that axe. aceer
= ssable prow amy page ie webtite. i)
ne Web. Copia Contains the conffquxasion settings thas
couse! the behaviour ob apelicadtowe,
Oote Adding Webpage te dfplicadion — @)
4, Rigs Wick ow solution explorer Praec name i
2. gore the optiow add “we tem”.
& Sdeck the templare "Web frm”
co As Nawe “has home aap
® Cute ‘add” buttow
C .
# Adding woutvols +> page?
3 You can aay and alip the umedsol fam pet Se desig |
ox! Source of page. \
2 YOR com waite the cvowbD) cyntax in page Source
ext = "Suu +")
|
we Absolute position por controls + Two ways
method 11. Using ophionc \
A. ger fools menu |
2. Sdece option 4 Goto cadtqory " Hind Atsiqnen”
+ Sadek the Sub Cotegury "ess Stytng
ae Select the neck bc Ch amge Poriowng ’
Method 2: Using shye
|
A Bator WO of ole organizing info iS using tables We com ute
1
av but fer Wwe have Av ute div with yubles
% Ope Rip chick om Project mame and go rv secud Lost
ephor amd qo te bin you wil get all dit Hflet& ASP.NET Applicohow Vife cycle
Request =o [Bis toads Tsne-dat} Toads nf. dat] Tsar dit].
Ll ew Same Sexven
frows We wae
-St coma * basis
extem Won We @4pr%,
ascx \aad the
ASPNET_TSAP dle
L
[estsens ear generates
hast runtime Class ashgy
SY po worker prouas |
Lb
Gna) [= Gustine Clade, qunear
‘ Sad) - 44 ndiphumtime Applicat:
tow objer which picks
|
|
| owe applicariow dow ain
|
|
— Capp doweln ) “yran~
Save Vie . :
ee apeticostow: pool
ve
[- ate Aq pli cotvow obyect Crt]
ase on instance of page 5
object amd invoke
Prousskequert() method
etn) So
Goa) ae (tosh) x} tom ME eye and gor] >
Ger — ~exadts ve Tygon |
Asp ner faye VE cydePage Stage Descniptiow
1. Twitiobizatiow Ty Huis Stage the LoWrl axe ertated and
axe aniqned With unique ID's
a, bead vied In this stage the values of covtrls axe saved
C Stare
"bo provide ow postBack
S- Pre-Pemder The wontrel eves ace fired UP amd various
AckKous axe pertyaned
4: Save view “The rubs axe computed amd axe saved
grode ima view state
S. Runden, “The Hew sraponce Is qunexased fer the hi ek
; wtiqueny and the response is Send te cent
6. Uwload Tt unloads “the Roge ond performs cleanup,
Ve al tracts of page ace removed yom
Sexver -
* ASP Nek high tevel design
—_— |
2 Request Load View Stare]
Cc HTML _————
(Lead Posr@ack Dodo]
o Hamdlo +
oO Lead
Cee eee aise Reser tet back Event]
1 i i
Raponse | use [cave Nie Sree]
Sf dt
CO O® Page wonkss
Thece axe four Stagu fu page vente
4) fwr
2 Load
8? Rundoung
5 4) Ulead ,You might also like
Ajax, WebServices, WPF, WCF, SilvrLight, Jquery - Notes by RN Reddy
Ajax, WebServices, WPF, WCF, SilvrLight, Jquery - Notes by RN Reddy
298 pages