Share VP - Merged
Share VP - Merged
Asp. NET
quitk previeso of hau
coLts
css. Jotodu chao o Seryer
eooale Loth
Locth buton tondnh, ett
boxes, cheek boxes haclis bu loos,i dol
and otber cweb server ctols Be image,
To ses needs
access
cocb oppliaCan
oeb boowser Hbat
Coropu l pOpulas
Moct Internkt web boroseos
HTMU.
Stahc cocbpages
Glof c cwebpa ges are Ht ML documents
bad don 4 change
change opoe o
Eveyooe cobo Ves S-lahc
coebpage Sees
fhe CSame Covoliot
ezaely ste tbe web
How a Seve poocess es pages
cient
b4p equest Senven
baroter Senven
tilo
bitp espoe
coeb serveg an
hoess age Caled
HTOP equest to
lbeweb Sesveg Tbe
TP veques inclueles iofomatons suh as
and addsess Hhe
7equcsed, address he boo wsen ma bnj
equesd and address Jhe
tbad col) Poncesshe 7quest
klbeg IbE Sey ven
boosen, -be Serve vetneves he
equeslod fle fom the disk and Seods
the frle back to lbe booosos cin-lhe
af on bttp vepose
klbeo he baowsen
t bomnats
4he bttp
9eponse ood disploys -he
btol decument .Tben
. he se can Vieo
Hhe Costent blp sespose Getet regueled dacu
ment
A Use cJ0okng cordh a bn cosed ca0
Iocttals an
btp equest is seveoal coays
addrcs f be coebpage
Called URL
Cceno Resocce Localas) t
boosens aeldoess and hen press
en l6s kayAncber
lon bat a
coebpage
protocol comajo pame Perts file
bame
1A Peage is an H7M
buoernt at u genesolsd byaweb.foy
4 changes accooding to npomahons hal
for NET Asp.
poased
oo s uest Aeg oapr,
Gtbe orsion ex
ctich fuolout ppngs
Co
quesGd erlisio
cup loots t page, dlynsie
cb afor
webseved khen
¬1s seeg
to-toeeh
boeases oser
forns
ppln web
case 1 boo
nd
ap. Cwebgerw
rved, corn Appl cient
Server gnarie
coook Pages cocb Hoco
canools
-to -lbese coHh
Cogtools Seve? pages cocbOne
Usen foms
s Coeb
do Hbalhad Cweb dynanickey and Page
ès
oeh cGtahe blew One
by Seod
booseT
klbeo appi ca luon Server eceevcs
Aequest, it speated coeb forg beo
an tiML docwmeot c
oppli ca lho0 Semven,
passes eweb sen ven arel fo
tbere e lha
boooses.
Page dplyad,
Cao mles act
pest page
back te
Server yi wtich s calod postback
page
tbe dala eolaz d
be Pop cess
Use
a web page nd eods clt
the Sesver
sondg a
opevse Baek. to lea
eiet s cale o
An Iotndueliro to Asp -NET
applicalcao
dleulspro eot
for AsP Aer aplo dupt
clhet
K kliodows xP o
Micosse NEn frame coonk 4
*A Boosey
* Visual sladio
Sevvet
klibdoos Servey oo8
Micooc oft e7
27s 6-o O la leo
Sel Sevey cquva hot alalabale,
sramecsoak
Cooporoeot
NET Appli cafons
Viscual Bcsic c# Visua C tt visual F#
Gbaaoy
" NeT rameook class
kliodoos jooros classe Asp ned casses
Ruotime
Cornoo
Logung
Moinged ctases totesmedot
Coptioton LangeAg
oS bondoae
klondocos XP
Series
"Aen apliealons ook by wsy
access es
cotieh bat
hardoe The
NET Consisti o
the
aomon angu age lun ne.
Boorn of classes
tbad aoe aveç lable
vailable o al (e
poogtamrog language. There e asses ae
utolass Xe dy late
Caot
Castlloo sb. Vb - A Cc lass Itiat
Coot
Hoo an ASP. e
rdor
Order Coropile cless
Ordesasp Paptial ca
erde
Orer a class
clas
AsP AeT
gdoalesa pastal class
foorr and b Cos
he declabaione for dh bat Corahans
Coxder- sp)
at a class a will ioihaliy he form,
be Caele lbal Contools nod qeoeoalk
inetastale be
HTML o? ocb page
he pasti al ctass
thad caslhoe Caotensibe Cootool deelasaioos
Cocth he b paobal clage
dbe fom vot Csrent
Code
povide be eveol blig
the ordet-aupr
3 he Caopiles1he
vb Coopiler bbemts
class, olsch assea
Saves
Jhe yesult Pag is Vegva
elass
is
ex ceulad oben pa
an
4. stored o
ober class Ailes bal ave
dasses
ppicaions App-ode tolder.Thoe
are Saved Siyly asenbly.
AsP NeT Creates
5 an
ioslance he
the
are done ony
's Vequeslsd Aqteo thad the page
is Poec3sed Gopild
essemblies.
klbeo
Page
sServeY mly Po cessed
bxo osey heo t iu coloadodg
FoEocoung
kleb Fowas
To
doy a
middle 0f Ib¬
klheo a dol a
fom to be
Coc bsete the
dengor HIML Code
Ssee vied
kle
VIew
Split vieo
aod
Sesigoe
he Oesgner coundo)
comdoco
he To
diplayd
ecit an
oick vo the cell o cb Agbt ang
enls
changes
Tool b02 Contals
tbat Can adel te visual dplay
studio
choose vieo-Too lboz
Pgjeds To epor bol bo
CUs
bbA
To a new Asp et ueb.
sebsite,he acld Q
to Loebsila To do that
Use bo
Ad a
Aequiscd
onedool cusloo Gnools
¢ Clser
Coveool Seorven Ajax NeA Asp.
Goo Seave NeT p.As
Condoos Servn HTML *
Comools HTML *
Aoflicb Codools
ses aleT ASP.
thei
mdiltca aodseleebons ,malke dala enli
ca
wer Coob, these Usng ools othea
4labels boaes, Rest boxes ehecko bultons
Coad meledes olich Gtul fblocks
Contonls
Centoels Serve Totodluetie,
to
SHoodasd
csed lp ctos secs
labels CExtBoxes elslh
Many Can Be bouod to dala Boce
Dala
Data bo uod
clala osee Ctl
clisplags clata Via
Validalao
vaGdate user p
Used te
side
cGet Supt
Loole by Aunng
boode mest vaielafiso egwo
Aj ax Exterei oo
Catovls toal
&ledes pasts 4 a page dung
lood ad, data and va bel ctheo
cAols
alext
Pfoo design
typ ctols a csed oy
Se
ibtn
Jragebte
blok Lets he uses o o to
Hyper iok
anolbr page bbe applo
ge isplays
a
ledi Dsplay blst List leted B
bocoSe
for cse the
s hat butto a Rleuplend
a
bor lext Displags upl
lets
ndeserneSeleetd Display
a cln Caleodes
iroage bisplags
as Iroage
off oplon "Tuoa CadioBttoo
off oplasis
on %
oplons Tums Boalist eheck
box ebeck
heos
ho se st use ,e lets lst Listbor
dl Doepdocos
ist
Cse be Lets
Ho t baodle Canlolevent
An eved baodle 1 Seubprov ceduoe
hat calle twben a Apeeifi ed eveot
ocwns Visua stactio calb an event
harelles by
On lhe
includog a Hanele clause
subpovedre . The Haodle clatuse
Dgmestbe co god everl bat he
pv cedue banclles
Kasp: Buto id "by Canel uoat- "Srws
Ted Caocel />
End Suh
also Creale a everd baoclle
kle coo
alibua of he Cad
p po pna lE evend
egasp:bulen 4-" bn antal ugd
TextCantel " Onelfek -"bnlancal-trp,
Pro leeded Scub bhlancal- ctek (Byval
Seade a Objecd, ey vale sSr
eve Aogr)
at buR Conools
eve
Command Oncommand
Cverls
clause list ha Codads and
aflmbue of eath
handler each evest
Acess t e s
AHtE,
eluredy toHbis iele) by preasing
To Crea le an access eey, Sioply
add, Acusskey atmbul t the Cagtoo
ou uao Crea a shot cec
s )frsl displaged
Move &a Cedl a
( ocus
uoume ig o S metbed
Covdoo
Deheult &utoo atibu or ued
Buton Coodools
have at least me
Most
bullbv hal hz cise Can cuek 6
Condap
Serve fo
Submit he om tohe
Called a Subooit kuho
pAoLessmg Conmmoply
There au buloo olob
Pes
Hsp-net butov2s, liok bulons,
mag bullons
here ullns oluffe anly i
beu
They apear to Ihe er butoo
eusplay
clisplays texd cocth a n
neelangulas
ad looks
aea
display a mat
a
Two arqumes passec &ctiek even
Comma0deWer
Click bu ton
Commang mgumen
ndd to Cast
-> asp: untButo ID 1btn cheek " uod=E
Seave Post Back Uat " cheek- asp
=
Check
Out</asp: Link Be ton
Cheek Out
End Sub
The Cornmaod Een aised eoeevt
krtto» Conral. s .
usen clck.s a
ehe tue
Coad % Co de a
Snale bad
Ser a
gotp
bttons , hal pefem
AelaladacbenS. alse Cortasne
uabel (b
nd Seleet
End Sub
Alo fe l e
argument
he' mag
klhen UseT cCck mage butm, he
eve andlenfar the Carploo passes k
749 Coevclnale ococked posiban a3
po peau Chgumest
Teoct Bons
Texct br Cnhros ae
ypica l ued
Acept topub fr
One 0Y mo 'e
Cao accept
leelrede,
dtodiog on he eng
at bute
ne ne o , paksuoo Causes
:Maimon 0. Chaoallkor
Hbeed CAn be esTereed iob
the-ealboz
dcbap Deleamms whelbes or nod lexd
waps automai ca ly eoheo ef eathe
he end of mulauoe tealbez
Read Only Dede amme whedhe, -lbe cuse 0
chooge the 7t io l i lad boz
t chaaclos
eght a
smgu bao
Label
kabe Codaols pvides a ecsy wy
oli olisplay Caad
1D
ID b14
asp: abel Anal Sepe Zlasplohl
Cann a aHmbu la
Ju la bel
labe
teoct exd displayed by
Sme r o u p nom
up>hould bove
eup ae
maually exelusd've eme
Cherk boxes
openalzs lep enedy
Aunet e Se
Kasp: ¬beek Ber D cbkbto
text" 1 agne/>
asp: Radio Bulso D " d " Aemet Senvi
Group alame gande/>
asp: kaelisButtan D " d f Aucal: "Serul
CteupAlame
anden>
Com mo Athbutes
Bst
Toey ypicaly Covleuns n e me
Uey Cm a4d i'se ef elns
enj vb code os Ca lislJ C hechro
A Lstbex allows wner seleit onc
more elms a lit o elios. A
ropdouo eit lets a d ehoo a
Llo
fovr a
drep- do up Lit lcos.
Camoa
Atbals
31 Aunotzerud
<asp: Bulleléd KuH
D
"ou k
Bullud
as p: L01In
Sje, Reel <lasp kirtIGo
<lasp: B4tuded t i 6
Tmage Cogia
Coeol dlisplays graphicm ag
tmage
a-hmbules
bsoluteov elav
Jmage dal
AHemle ext
eoldt lnag
odth
heiht
heghi
Tnag Aigo Auqnmei mege aelaave
to te Ccbpaqe olhis
elomest d the Pag
peug*
ID t ' g 1
Kasp: Tomage Auoat
eve
age Uol /mages 4.
pg AHeTmt
Text
flo wers'/>,
Cede or
Sethhg mage ye
Image d
gpnduet- ImagelUf =Lnmagoveuts/a
Hypeslink
H
nevi
igatu G ano lbes
twebpa
cohe Ib sen elitks (ta
Contod.User ta
display ebi beat or
Coodool.
At bu
Has Prle fhue s e ,
hu selecteef a fhle
b uploced.
Terd ploed
bows plad
uploed
Calepde Condoo
The Calendar Cor E pically sed
& Pvidee wtb
usersA
an easya
seleehng aelal .
elhe be
make3 a Sefee Bon, he Se lee on Chaoged
event ased and Ik page
poslédo he
ServeT
Propere
Selecirpode pees lhe seleh
Accoptable
T Con be made
Valus ane Cay, aytdeak
Day week Morb Nme.
Seleeled Oat Canly SelaclTdOate
angle dde Ocs eleefed07 lha
fre seleeld dat
mulapla da
Were Aeleeted,
Beleeteel0ates A Calleehoo had Cotoins
all l5 seleel el da la dn eguna.
To dele 7mie -Ihe 0: eday ed
ae
Seleefe d, se Couri poopena T
his Ce
lleeh ons
asp: Calendar ID Caf1 Aunat "esver
Imag a
dbsple a9
a
CovlaolsB,
Hoco To manag Ste o
sessiao slaTe on4
cuse ic o SlaTe
ete 14o To u Cooki
applucaliso
Valclatio Centools
pes
Reguired Feld VaColale cheeks hat ao
eny has beeo made
coho
SpedAorge
4 Regules ezprusion Vauda lia Chec ks Iha
vaudalD Camdnls
Called voCdelsz
he1s
ots1rv Codons
oo la web for
mput Codo
(Ce
VaidattooS smmay Condo ol splas
Summ 7 a lhe evo Onue p
t be
The O f he Comdol
Cordal To Vauda
vaGelaGd
e s pe
isplay Yede mme ho w
t be dusplayed. Speaylahe
allocata spae fr msg n Pogelayoud
han pas ale cale ol
tohan an
orn Oca A/ne
tbot displo d
Evov esinge
va lida to aodforhe
va
id hro
Coodrol cohsn VaUdaton
Seummo
s dhsployed n z
Terd
The r
VaCclaL6
paspeng display
Suanm7 Conuo
he
I n di' ca las cohe-th er
Enabled
Cooo is enabled
Vaela on
pompeo- coheo e
en a Covdro and 1aEo
enlased a value nt oo Ip
odnal
e CABe doesn'l eol veliw
Vo Ci ela lor s e messaq lspla
Poo pea ly
Value ta Co9paze
Tre value that lhe
Vala'lo Coopooe
tio l Cagdo lloa Cdo le
Centaol6peced
ppeliy Shouldbe Caropared o To
he opat do la to a CornStaat
Copape
se Ualue'lo
paocpopeniy .
Opeoa loo The pefCam pan sdn
penfoa Equal, lotEqual, Gtaealiban
Sasp
Conope re Vaidalo bat
ehks
fe 0
Jntege Valus
Cepa3e).
umehe ge.
had cheeks for
A Va Udatu
range
Dunerl Sepve
Terd Bor
Dtd Days
<lasp: ed Box
2unc) Seaves
a s p : Range VoClator IDRV4 =
CovoelTo Vatidate
=
tztDays pe nlqe
"
Mioimum Value =
Manimu Value
Ero Messqz =Days mui be betsp Aand 14
a p : Rank VeCelbit
Validaiao techniques
XHoco to Cuse valida so Suome Oota
Valida thon Suma 9 Conm
displae
a Simoa° 0j the erao7 boessages
esthat
coee genendled bypage va doo as .
7
Sumpaoy be 0eb
con
olispla yed
pa ge epe ra messa b0
eioo mesS ages
displagee Naudatho
& maby Cosko Comedom exc
Poepe y po Valda osS. J
Ser vey
Fo locoin
Pleax Cooeel (G
o loco
o Unter numbe
Hoo te CLse valicda Can raups
A valiclalioo o tp cobwoCa pe
Valicla leas hat AuD
po
poslad..
To 90eup Va lda loos Set VaUda ldo
almbue for each el ucla lo. en
Cotcp eacb Conliol hat
use his adi buta for
Causes postbae k lo 8peea
otneb oup
Shoulel 6 enecalcal
sop A
tohe e
pe Valide
mehed usee cwr llubut ngumest
Advancedd Valdauó nlols
A
hegal o expaesston
oad up f Spei al
a
surg
pallm matchng Symbol
CUser Can use
gulo expressc6n Co cth La
Aegulaexpaeas Valuda lo anaka gu
that Cu coput Covliels cdala
meetthe3 a
tlemet Sescpin
latthes
chcla c lo ol
Ondiney Characlo ay
decimal diget
c h a a c lo (a
Oo2d
co Matt hes ay
anl 0-q1)
olbas nan
ad
Matthes ay
aOepd choaaclio
colmli Bpan
s Matches a
clherac loi C8paLee nerols oe , l a
)
Gy Cbaraclo, OlLo
S Matches
otlispeice eharacla
Labed Matehes
a ehoraelos
included
bel coeco lte brackels
abed) Matehes o ehoaae o hat e
etactly
madehe3 atledB
Hoe pr c a eiog eleoest
The11ccudog elumet
Malchs 20 0 ne OCcuana a
Pucedung9 elanoant
malebeg Cme 0Y moe OCcu anC
elom a
vetaca boa
b a
Examples lhiad
-Speaie aoy 3 e t nurnbe 3
d53
at least 8 but not
lo8,20-Speues mu
Custo Validalos
af e Validale pmvid
a dala Ibe e
Yalidatboo, Uses ea
he Vai daueo
CUses Codes
. Vew s4ale
View stali ii on
Asp net-|ealuse
hat posvidesfe elaning he Values
of a Cendoo poopea Las hat
page
change enecuu Lom anolas
a
to
Befee Asp. net seds a
pag back
Changs lz
cCent, i t elet nu (at
0f TCa
page and Cenuols.The chogs
That 1s
ae enCocled a slmog,
asstgoec ea hieldep feld Damed
Viel<lS1 ATE a e
lben a
P is
peslid baek 6
page i sableo
Sed lle Ui
ostata Mode popeng f
Selceted Consoo s t Enab ledd
To elisable Vecosla e
a
Covdo sed
Emable Vi e o Slate
p" fabe
To dis able Ueosla le er a eo e M
Enabla Wieo Stale poperlý a
da Fale elis ables Vieuo slat
o al Condoole
Teoo Cess wheo oast eliseb
Vieo s la le
a
klbeo resbnng (CoCovoll po0peo ws er
Ob
pog afee (e C a y ycwant
e form
o auy liable lte ecosa
olhenws o Can modiby yous Cadle So
he peg cooals
co tluo ut, Cwoiog 4
Vieosla
= klhe (Cc 3 uu vhewsaa feld
getso loage l u titoffeet
t perfemor
eoslo6
ou a dua6la C
How to clekrm me
a
page
Eneble Tra Ceea lue
for lpagby
atibul
Seboq he ra Ce
af pag
dircetve Page Toue Theo
Sroll douo (a Condoo 7 ee eebeo
the oa Ce OTlyut Ste nuorb e o
wseel (ca
byts Uies sla b page
ye O clala
Hoo to use Vies lat o
AlHho gh
The rm and Covndoo
aved
poDpen
au
eo ma cally
also Scnve Oc
Views la& ized Can
us
View s l a i Obeed Cyea ad
C ee fad
by (CT Uieuw slat
class To a l h h eNe
SHato Baq
poopes l Cpap
obed cuse Vieuo sla&
Coro oao oopexlus
lhöcls afs lati Baa
me
claas
Prnpery
n0me) T value of ke vieuosh alar
ame
coth speciied
Value a/ an ilaro bat aloe Svt exish
tae ColLeeh am
A colleebon a kas fov al (
elarns View slate ColLeehoso
valus er l (
Values A Co lleehoo af
Uew a t Co/aehoo
lenns e
Methed
Adds an 2To
t lue
Ad (Dame, value)
Vieu Sla& Co leehon
oanu) (C pe.cigied lo ot
Romove & Romo Ves
Vieosla Co/leebo
Stont dhat adds a7 upda Viewslat L l
im
umest amp asOatoTime C&hte( =
Vieo Slata
tro hæl Vtmove Cne Stamt'))
an
lum
iwo stat Remove C"Tme
S4a o").
2.Se5SIC State
So the CaAden
Ser ve fy (tz Sessioo
asou a hd colth hat eg uest
To wok colthm l a lt n sessioo Sat
We
HHp Sessier Slaa class otnch dehumes a
CD(lu};trr:, oj ~l~b. LI.Fro.! . "To a~s /~
<l'e.3s iim o!j,_,r ~f.,. = fc.u. C..d, - be h<M,J -g, ~,,
c.ue ~ t s'«sitr>::> ,,.,..,r1>1rj e+/ /IL. f~
if-US10") u-fo u. %
-¥ J. ~ ( 'Y)q~e ) - 'la.f 4t. of
c.,0 ·, --fl) Sfeu'f,'-u/ n qn?€,
Cnu t?t
- ~e 0t1,-,, t,e? o,f c. Of"!J.!l vo I~
•
ef ~ 7 () tRPrr;, o v ~ a11 ,1.i:c.ro s ~0n'1) 1>; e
&u-:S 1c-o otc1 ~ C4J I l.u..15 o o
I
~ s ,(J,,., . 1.2.ln?t,~ C• <! TY)l\) r ·')
Di~"
"2N e_ ,,v, · h.Me,.'llcJ' opp Le r_ a,,._ ~ s ovve.1 /W. u.p dei r;:d
1
V'Wvt CLb [u ~D.R. f:__ Tu (~ ~u~ iM ,3 f:j ~ So /~ ~
I
wc:fh
..
VY,) a.. -~·W?g_~ r~ c_c d c.. l.,-u: UV) ~1 0 a ppL'-' C£t,,h'o)?.,}
r•?f'lj UA, 0d Q
,~"'c7-/Vc r/h a.t:
, Cfe.A ~ I ()Y)
.( -I (3J le (/Y) 0~{; rvl() 1
~v ,, 0, / J)tlnc/ I<' ?' •
( ocu)t t =: )
l,
• La(• e
1:::>
r( • 1 e x c:/ = I\
'J t', l t r ( ,. r k ✓~ cf
,, 4 C. ,!,, 1 r; I ._A)
1
,,
-Crm <'.J
1
<o->cP £ u b
d_ Ct.-LQ..; a r:>q
,.J o< Of
LUI
_ r?5 -to~ c~~
f..
e h_; d- ~~ .s 16Y) ID::.
!I S vo Ivie
,
tT) t.9'e r ve ">' rn e.n-Jct "r3
~ s1~= te.
c5e 7 vi , U · . '7-{
~c, /Iii.
he
I~ u.,ge ry
1
8-GS~ i t7Y>~, 1-1-o u, e_."l;J-e,? 1;f a<.. b-,rvu..JS el?' clo~ n t
S'f po?)✓t ~ 10 €-::3 / -I h-'r s rr> e lb Od d (!) ~ -n },-I u.J()?J h..
I'D
w o '() b
is -e.?U> cfeJ
ca herlh<?
a~
o,
a
r ~ oJ t.l t.L . Jf
00·!. ) Jx b00 LO 5C '"/
o~f ~?l5 U,o /u~ .
/> <f ,,,
AQ rt> &Y) VV/ g ,/).,R or-U 'X n? VJ t b.f)-Y ~ II (~
J e_,)}, S , ov:, S( c, I~ 0 0 dv, ~ l ·c:R er; {:;_ca_( ,J £D
-1 cr, a/) appLJ {CJ.J."io.
a C f C\ ~S~ r / f-,a_,(
y I-lo co to s et
CLJ/2ti"co ,
c~okLJ' ef eg~ Vo. lu .e rJba--/
p
s e.-u ~ 8 w k, e_-H, e?
us eJ . A uf6 Oe,1-u_,1 C.-L,~ ~ Lebo 6 ~
,/
lJ)ge u'd")
d~c r·( It C/
'
J".: o?o .
~, C(r el <rr, I')(> e,-h Cff) Srlr;n J - '!°he s~ \I e 7 ')')?, fl)~ (1 ';(
~L¼
1-,-;_
a., l-b a~
I
u. SI1 I I I(
/l /Jf) I , ( .- * C\ "") / {1 /'"1('1 ( 1.
~7 -r u crt ,rYJ
~ Lu.//L't a
C-lfP(.l,~
./co lh~ p~·
r-rh.v:> 11-sp . Ale.., CA-c. Q m 6'9 a.rpu.·Ut 0,d'()
o&eel ,f<?D /YJ -lhe H-flsf 4PpUea. U YJ d cJH . ,---n,,;, .s
o!jeel. e,x..{s t {o-Y lh"e c:Ju.-,,,a/_,_'iio c.-f (h ~ a.ppU c,,C,i~ .
1
(fr)CR. Q;? Ci.fpU ea&•;) hM &lrn,{;-cfl,, clov.?J t- a
o/Lo-.r>?et.ltg e,,d C/Qt,. f ·-/he w ebge -J v e'Y U 6'1,t.ldaw>;;,
r <-< 1
<S'~ dale.., -lhd ehanJ v, iM = app r..,_'.e,;..t,.,,,~
e?c.e_~u.~ . --r; u$-e ~Ait>-1" Cl.fpu CA.- ld'O :s,,'ti ti.
/ts'!'· Alta C. n oife/2 0 'J C!/JpC, =t.,-;,o cSG /!:i_ ~~
:t,,Y ~ cy,plic"' e., "iYJ { rn= H#f 4,pl,_'eP.~
C!JJat cfa,ss. G✓ <.f t_;.,._e,8 -/{~<; e; f:JRe.f l¥) -~ ~ve -;r
fCLg£ ·
)
A ppU u. c,_;/) f>'·,o/'' ., ~ q ( (;,-;
8 e107J e.. t/~ (,/ -:·e.,/,n <. v <. ..../ he. v 0./u .e et;{ c,,:;
appL,,c.a.1.,;.-;, cs>-f--a. Ul. .di;;ry -IW ({''-'- ~ fmJ ti;
n;?a db.Ji/ 1 ~ -du, cdcf &idc -/h.Q.. °t pU CA liro
,g/a fR_ (!rfj Q.f'. t .5'6 e, /ku, U$e-,' &, /J I-{ /-r,;~ cl,_ (ff
-/f?~ OfI 6-~ &;O · ,g+ct ~ cJQ (i:/ aJ flu;_ f ~ ·
A; J"-Ol!Y,) 0-!> fr4 fu/1g b 0oci,_,6~~ II.ii
~f U (p._ltsi·-o ~ cfo,J;;,,J ~ u tu,, u.lc/ !) UJ:> ~ d::...,
r!.£;,'7'] ~ ;J-
eve..0 f-
......
1/ £J f p ll;CAfun_ ['r;,J - !hA s e ver., f_ .u r;;- o
Q.),Spcl
00b O -u-f ~
wk.a a 0 a--pp u c_c. w~ .-'.,_J
De;?. G,v!, e..c.f fc, C..~ ,.. Q cJJ~ ~U:,--&'l . <1-y;J ..-0 LO {:i,
. a
w~ a ~ -?' /2-e..-8~~ ·µ ' ~&,uf
'o)c/ S4 b
~ &t4b
1 . C0ot_/~
ll (.f/;6 k.J "e. vl.J ~ Q}@n-x?, I I/ (!,L c~ pc'-.i-Y
r-fh{!),-t .u ....& ~ ~eJJ aY) d/ U?·-/}s C.0-rtJf w Cvt . A
I
ti>? C.n--:>I ) '.);j c,_ I C ti (& Ji .s e..& S I rrr;;
I.Y trv r,o Se ? ·S
M /> · A H 1 U8-V> ½ ;; ~-
le st · ~ c,( ~- 0 ltl t
ID t.e Y a. S e-s~--c.JO'>'?
.
u·~ LJ lc__opt <?-0 Ii
A f-?._e7n!-1 s-l e.ot G o1
'
,u AR..---f-e¥)' 0ec/ u~ ft I
I & nd d
w ~ s ~ le .
e yw,-a [;'q--,, daTu ·
-the e..o-c u e
r0-f6rm<Zl,,,~ ~ ct ±
~o -!he. w e~ d (JY ) a I:
~ e -f:p
we.,b cf~ . k/e_ e_t ,r) a ls -o
cg-fu )-(> _ ~ 7f"'IY)Q l.:o() -fh a-:/ a (Co -c..{) ·~ l I <?_?1 on aCJ
~ l-U!:,-er1' ,
a
() 1~
1fQ f , r
t?u «)
~e_cu? e.
w /u,r{ f? ery
.h wed'
V aLu..fL
A cS7•/,r, cl V,e ( u R... CU>·¥),., ,4 -1-o ({d_
f._P>o (ue,,
- -w - - --
o, r() 'Y)tl'Y) I', C.,,'l) b! A-s ,_J, {--H{ p(_g, 0 /ej ~ t (1M -(Vl O.M..D ~
uJ,.(..'iVl Q fYL-lJ._
a#)cl t ?T> f",;, t.., Cs 9r: I;!_( {r (o,o!:_!._.e ~, /Infi'!_.r; (' &, ?'.
<7he '"nc. a .,.., ~ f../v'V>"I a ,., u.A ~6 I-I Io/ {;., ob e, C,,J{,,,;,_,
clt:v1s
"--
r c) CtJY>r/t>JQ5 u /c.o_pncr0 of ~c)ue:1> ib &~I t:Jc..,1e.
bU-<) /2--U)6 -{c, /he. cf-e_a-ve--Y r(t?roYYJ c Gttri .
'/)--J / S CA /I ,u..,f, ,m CiM & q U.-V! Hi'..e} ~
rfh,._ G,<> V es rfq~!J oJ /-( 11:p /<e1cfol,-1 a!:J)'d
I{ ,u-r,, (<n ame ) _ '7be Ct, o k) e ~db .J"f Wbl eJ. .r;a m<-
[ w,e.& --fn 't~e,,. e.. Uo 1:!..J'!)
,.
("Jr /4
t&xl~u.b .
n-t_ C0 e tc..:i e J
t /I I ' I , J, , ,/
1
r ·
I. r l , J '. 1 a(
(i t U ~ I J ('f/r \ I, )
(
~ ,R r I J, r I C 1/IJ
(_
l "
'
}"1( f {J ,, , ( , .'? l r 1'" \ • I? I ) ~ ,I,,I
( .. C~ >) (
(.,1 (J, ~ ',
l. •.
~
(')~,(')"~)"'()
Cl1\I)
•6''n CY) (Pr>r> r)f'A f/1'
'
. .
_ .._ l, q f' ~ ) ( 1., I" C() f1h
ID == (I /-/ ,l i )) "r-u0at
elauenal
dalabase
dalabases
to
An tntvduchoop
elakal datwbase cUBes ablu
A
Each
Each
Stwre and mant
pule& dala
one ov moe eeords
table Consist
hat Cotaint
valus for a
07 9ows
Cntuins o
oo e
ne
Coteins
ow
Cach
endy.
ngle
tngle
a
Columns eAch
o moe felels
Co lumo Yepreseotog
a
Srgle a To of
data
Eey Columns
foT: table ca@gove
o7 e Censide
having e lds Calegory D, Name L rlere
1s
o s table pofnar key
Conside a i t tablePwdude havma
hong
reldpwdutt lD Prd-pamm, Descmpt
CatgeDHee pimory key is duel
I is exomple Calage D Columo
isused 6o elalz Catageies 4 Produi
tables.
cwleo a vo S
adeledto 4he b t í
Testi ct he
velue at a
6,
defoe check Costaint.
Can
hold yeu
Hoto use
QL work o'rh
Te latenal database
data a
slandard
AHhoughSQL s
a
beMS s CPkelyto
langeiage,each
diakitishieb
bavets ow 6QL
meludeerteostoos& Hhe tandaad
cuwe SQL,
Socohas cwe
lanuage fbat,. he SQL
dialect
Sue
0vder By CakurondAse|bee,Celro -2
As Dese
: Select Pmdut (D Name Pao duet
whee ae D pops" -d by
the table.
movetables
Toio
Suntax
Seleek Column-list foable- ooe) Iob
table-2 On
table. columo |421
able 2. Cokuno2 bere Seleebep-
coeia ovdni By Cokioo-list]
eg Seleed Pod- ie, uoit-piu
mame
Categeses le Joio Prcduets O o g
Cat-10 Produets. CaliD Ovdn b
Catage es.
Cad 1D
losnot
,Isidu
n seat Loto) teble-name| {Cotumo-list)
values
Values
set1o
osest toto Caagoies Cat - D, alane)
+able
Lndmclushon to ADO NeT1
Achin X Datu Objeefs i a
pina
he Wet Fen
datu aceus AP) for
hat ave
1t pmvieles the classes
cwhes
dalsbose applaG
usee levelop
Datu set
Dateteble
Adapted
Comoand
|Oatabas
o
ADo. NLT usos ypa af objeets
a ccess the dala a dalabase atd
() dalSef
calabase So t be aessed
fmm he can
archi teeluee
arelinleetue deee
s Cmmeeled dala
Conoeelion to
a C o nueu
Tegure
dala.The
dala soee fo7 acessm
is theCoofGct
maio dis ad vanlage lzoo ov moe
whan
hal can ccu
wses reti ev andtben Ey
a
updalE data Jhe Seme 2D of
last lo cons
awoic)Comcuraeny 290S
Ho co to
optomrsSae meurrncg adegua
ses adalasef Co
a pmO -lb
h e 'da-la basc
o cpdalE
e deszoe
n d eruhes reua
edmevesnd
So
Xdesi3o, a pooga
me
a t a dame
Colaa
wihot
Hoo to coor oih d a l
da acdapl
NeT data proovides
Daa Reacled
Insest Deletz o0
Cypdate Crod
datubase
Po pesty
Melho
noeeboy é a da labase
Ope- pens a
eloses a 1
clo -
2SqlCommad class
Hhe nqme
a fov ed
Co 0drype AContan
endmena Boo
edByCarmro and
Method
Eneoile aqua
Ereczte Reades S e i C a lR e n d e
reum Tsklt au
E n e e om Enetes dhe C Od
Tepresen o.
affped
Sealas:eecula a 9
ef the dia
Emecutu esumo
Yelms
Yo elumed
used fo ass
Sq Comanand
SReade
Dala Teade provi de voly ead
toa dba
torronod Gnly
be sed updata dala
Cant
he
wth
Item Accuses 6 Colun
pei nde o name
he euTTent
veade
uneenlo
nctl d a l idali
elosed
Metbeds
Raaods next ww
Rend
close
close daliveade
dalabase.
operues
Seleet Cwmaod Seleel Commard oheef
Shmt
YepresenEng
Selees Gaeb
daba
Delete Camroaod
Joset Goman
pelat amma od
Metpeds
I Eneeula he Command denla ed
4 onds
bSelecd Comoand pmpes
dalased Objet
sult v a
To 9et
get dal fro SqL Serve
To
clatabase, Use SOL dala Souw w
he
Arorlher ay Creet S IDataSne
by Choo te Data Sowmu Caoand
the Soraot tag meu a bmdable
Jame
laap: Sqiedata Sow a),
Basie Atm bulu
D ID fo S1DalaSo u ndav
Runet Mus 4peib
Cnnethon Sn'oa .
Cannec hon ShongThe
ProroVi dey lame : Wame of he P v
prooVd
sed to aceess he datubase.
da labase
Yye cho6se fo seleet he
Co lumns ant
dm a table
Ve Cheo se
he tuble o View
and Column e
and
coat
nelm eved
kle can also wse tok WHERe buto
to
SpeebSelechn Cmbema and OL0e
eY brtlro t
SpeySosung o der
ou Choo se Cusim Sq
The klhere
for 1he Select Sta lim ent.
mere
clause Conists af one 7
07 a value Stord
sesst slah
Seleck panamelis
pre vide he
Seleet pouanme ln
klhere Clause klheo
Value3 by
s
he
we Creale hereClause
mere
Seleet
erea les 07
parame lkhs
Seleet pauame b
usecd o dene.
2lements
elarmes
Cootenns a child
Seleet Pananets
he dataSuu
er eath paame used By
Seleet 6almest
p e a eled ih a
* parameled Dehos Cu
Cmstant Valu
o he
page
efies
a
prame
e y mng Peuaome
thad valus
gets 2 oo
URL wsed to u quest ap43
Perame lbo daat
TomPorame l Sefrs a
a Coo k e
ges b v a l u s
AHnbles do Gr pasame levs
wt bfoo
Spples te valua ofhe peuamet
Connechoo Smog
a s p : S1Dale Source
<%$CenoechonShongs He ConoeebopSg
ID Sldsoura 2 unat Sesver
pov ceduats
stored
cwrth a
To Cuslo m
Ase slaleoes
SOL elala So s ce Seleet he
Steum en b
selecho9 appro
tab
lio stei
-
Cus
kle e a al so
Bu lde T allews
mesy
csma y
bauld Select Stalemept °
tou a
choos Colamns
tebles and viecws. kle ca also p e l
Coluon
d tes Ctema e a e heaeh
Soat a
Bulder
we
Steot wm
().lhe
hat ut
cialog bor
cable e u oant mc luele
select
Each Seleelzeo ta ble
at he
aisplayod daga pepe
z qury buulder
top
top
ewe acld
sela lid tobl
buildes
aulo mat cal,
the
gueny
teble
Jo ms the lwo
. To oclude a Col m
next 5
use check bo e appea
This adds Co/umn
diagram pone
he d pone
Selec he
ColumD an
sCope
Seleeh ro mki
an
spe bulder
builds
b ail a Seleet
vhe y io g/pane
bat displ ays
h
the res ult
Tolisp/ay
cck Enreiu Puny
Yesut pene
Bu Ho
a
Choose Dala So u
Saneat ag oenu.
klben we set a
dal Soum
a Data, Cist Cor vis ual stad'o reale
adeault cmpla t 24 cludes
bext box o eath Col um he dola
So c p ceded by he ht
Cex
he Col mo.
Commo» tnplate elemants
Difplayed befere ha
Hender Templat
iost ia lata Souce
lke lat-
ookn Template isp layed ats
date So usea
h ed
Alamatog Juo lemplat: eplay tv
alturnatuve ateo n ( c dale Souw
we
baseshd
da la base
upda coclude
A al ala so s ce Can
Insest, Cpdab and elela ota ta meot s
allouos ceser aulo oaa ca ly cepda a
mlaple ccessed a
alala ad tmes
it SoSeatl
beCon copy a
a of
the
Reteve
tcla faom ledaretieve
data a
base ponvides
a e7AlA0o.
charge
de wce So ada lhe
Coscney
pso eprosae the ese
oncureoy tensis
ae op wses
ka
cheek
stalameos
lha Oelete goesate
eobonced
verons geoealor
To box. log lia
d epts State
on DekETe and
bi cheek
Sfalzonent
for updat
elab, Joset, generot caly ona auta
ot.
To ladabouod thseso
e toe
ade
by based labase da Hbe
wlsch Aetos eve dala
nowadomy read only fasbin.
crealt a dala Sawca, la
dalk dolset
se Cachungo
ASp. NeT Cathng mebod ale
Sove lta dola vets eved by a
Lt reduees dolbax
Semvey Smie
aceesS it ofto
averal penfomooa
aloSowse ode af bute
liey - 7 hu ati bt
Cache Expoa lso Po Cacbe dunoliin
he
set to ebsolut
Staolid the 0 not reset
elived a oel
data
geoo otl offer
1 this ainbuto
Caebe dlvelio l e
the
each
absolute
Qfaut is
valwe assedolee
Cache koy Ruy ale
povi les aCached
cocs -the
Module
Selup a Wndous
eqwree
use 1he use
e each
seI account
t e s h i et
Standad Secunty Jea lusu
pat-a Iha appGahu-
Qewss al
boocoses to cispla4
Cause3 the
olialog box eoka
alom
a lampt Yesl elzd
pa wse
To
T o cuse lindocos Lve D, we
must giste au
t co1th
Microsoft to obteuo an
appucahiao
D ad hep elownloacl liocloos
ive O Autheo t cabeo SOk
proces radhog
appli calo The
to applicatu is
user a cees88
Called aucthunaalio
Authestueatio
kderhs ?
How ombas ed
1, The browser requests a Requesst 2. The server receives the
protected page. request and checks if it
includes a cookie with an
authentication ticket. If
not, the server responds
Redirect by redirecting the browser
3. The browser receives the to the login page.
Cvalool
aceess e u7
rules thad
Ppuerbog
to lh
autheoti Ca fHoo
o set ap had
dhe uok
en
cllek
H%t he,
Steats SecunSelap uhzard
to cusee
lklinde ws Authent calto J al
wse aLcess oun websete threugb
oto9net ths Op liao is easiest
implenest
will aCeesS
ang ohe CBeosB
the websct he
cntemet, we
do
to euthesica lu6o
mud seerro besed
cuck
use
o bas ed auhestu a lso,
o9Seleck Authent ca lso Type unk d a
Amioist-
the Seuny tab Cwebsia
Opie.
How t Ce ale and manage les
A 70le alouws yoe do apply dhe
eSess.
Sa me a ccess ruless a
9 up of
Gach use asso caled wrth me
may
o7 mere les By defaule 9les a
disabled.
Bejere o t0e cor th l e
cebsiu ndwiosf> ohan Tool, you
u
oabie bem To do hat Ciict
able Reles Lmt t he
Seuniy
ard ben euc On Create 07 Man
Reles in.
To add a o fe Jus ekr hj
le aod cück
Add Rele &-
The cGck o
Manage . unk o
add
O emove
Lsers
fnro be vole
Hoo to Cveate and Manage users
maree
oles o rts eath usu
One
at his Stage
more uler
Onee ewe erea l2 One 0
he by euct
Cwe CA manag t uas
anaqe csey Gok ule ca
Grro of
change o/e, dese»p
ema, Lnk
Elid Uses
P C u e t u o e
o
kle Ca chaoge voles of a user
cucknq Geit Role uiok
udes
How, to cYeal Maoage a
A access oule clekrmm colwch
To obers
Prevert
10 eachn
data trans iHed ver 6e
cmtened we Can use Seeune
Socke kayer), SSLis a
proto col
es e klww,het allows eleo
and Serve7 to e mmunI cale o v e r
Conpeehion klith
bov wse7 eneHpis all #he olal
that S Sent to Serverr emd decyp
a
dat 4at is rece ved fev
dhe Server
SSkis auble to
to oler me
at hs beeo
tempered orth
duing 1 m Ssien Jis also
able to vemy a a seven g
cwe he
C neeb oo startsaortt HTTPS
skada efHIP
Ogetas Sema
Certfieol.
To se &eLt iams nit data
the ient 4 Serve cuse didal secuve
client
the
tdeniy ofthe Serve
v
Conosche 1s estoblushed
Auhens
Hoco to ged and use adigeda Seeue
Ceruh eale
hest
Seod it pecopla coto
0 he Served
A Cerußcalo o audhonl is a
To e9uest
a Seeure Gmethe,
Cofgu4taon>
Kappset
add key "AppPath
value"/localbost/ousp aoloMystooe
<lppSeh? /ofzratin
Cede Ahal vedmeve appli caben path doo
web. Cenpa hle
Dim ual As
Sb
Sbn hteps:4
Chgu ebon Manage. App Sehra *p
belo aspx
Respense. Recioeed (ul)
(s s e c s e o n n e e h o o
To dotbat check
o t
Erd 3f
End Sub
anASÁGK
Dedails View Comdab)
s One
of (he most
mpoafaot Covd ol had is
sed t
mas to deteu senamo o u Can
Seleg
a ecore masten
Camdoo
Ce Comdvieuw) and Ihe selected re
is
displajed t Dedaul Vieud Coudrol,
eral
qndVies Convo)
displays mor tha dme veeord
bud Detcil Viaco
Cortool displaya
Smge veod ro darbase table.
eleileviews Cotol
supperts he
edit, nseab oleletu ad ,
pan
funehonaüg
Reg-No
Co u s e
Serpeste
Fovm Vies
ke Vie does mot have
predefned layout, but it depend
upo bemplat You can enSent,
updert, deltù and pagea
FomVieo
Fonn Vicw
klhen o Creat a
dal
Cola, and bund it to a
autm-
Evel aod Bo
The difknee blw
fuochon ls use to bod to
Is bad eval Coglol out
Data bo uod
a Conglol osi de a
velues back to he
cp doile |he
data base .
Casp: TexBox (D-7T'nSenes Text '< Z #
Cval (Namn)
On he olher band
Us ed to biod dala to
vnsideua data Bourd Cool ond alo
cupala retha values back to
tbe dalbase
Ssp lext Bo s IDaT"unat Semvet
Hoco to Coßgue Ast. et applicabeo
Tbe coeb. Cenfig fle for Asp. NeT
applu aubo Cortenns Coofguoahes lotodn
cwua ly eed to changt tsis fle
desng deve lop ed bul also
med ony edit lse botb
depleyoet kle cao
confg fle manualy,
Some tools
Tools OUe
papose
) Websia adnio s-looho tool
Console:
klebsia Adoniostoaogtool
web basee edstor tbat
IH )s a
cogtei
allocos you to mofaa
Tbis tool ses a tabbed o
opéions. betwcen bome page
Hhad to feoidch.
and tbat Coofguoe Seeusty, Appicahog
pogea
and p vider se. h g o
Adaioistooao Too
Pous tabs of cocb
Horme TDisplags bame page
* Qunty - Alo0s gou to Coofgue
>oles, and access ules.
* Appueab on Lets Creale Cuslom
SMTP
Tapplicabar sebog
email Seppost,Coolaal debug gung aa
toa ing aod Start sbp opplabon,
Lets Coofgue povida
for ealuaes Sueb es membesbip
and ole .
8 oays todeploy
a
There ae
Asp Nes
Xcopy de polyroest
*To
anualy opy the
the fles of os
Asp. NeT Cwebst le to Senve
XCopy earmrnand forn a Conmand poopt
Tben Use s mara qemeslConsole fo
Create a vistual cbaetoy hot s mapped
he
to the dioectoy ba gou Capied
webstte to.
To auto nole deployout, creolt a
X be Comnaod.Theo
bateb f le foo dhe Xcopy
beteb fle any
you ca eaon
sa appo
ma ke cheoges to
you theuplo cded
and to
co ant dep loy
Code
Visca
Alss do Xlony cuebste Coronoand
Pecanpiled deplgoeol
atemb ies
Depeye pieeplid
Benes
0to foc
x Deploy a
be dlooe
Can
aing asfnd.copd
aond pron
The grid view control displays data provided by a data source in a row and coloumn format
How to define fields in grid view control
grid view uses different types of elements to create and format its fields.
Sorting based on 2 or more coloumns:
To do that just use commas to separate the sort field names.
NOTE:
NOTE:
NOTE:
How to create and edit template field
DETAILS VIEW CONTROL
DetailView is one of the important control, that is mainly used in master-
detail scenario. You select the record from master control (as example
GridView) and selected record is displayed in DetailView control.
In general GridView control displays more than one record, but the
DetailsView control displays single record from database table. When you
execute your web page, DetailsView control renders an HTML table.
DetailsView control supports the edit, insert, delete and paging functionality.
You can insert, update, delete and paging the record in FormView. Adding
validation controls to a FormView is easier than DetailView control. For
displaying data, ItemTemplate is used.
Eval vs bind
The difference between Eval and Bind is that Eval function is used to bind data to control inside a DataBound
control, but it cannot update the values back to the database.
<asp:TextBox ID="txtName" runat="server" Text='<%# Eval("Name") %>'
/>
On the other hand, Bind function can be used to bind data to control inside a DataBound control and also it can
update the values back to the database.
<asp:TextBox ID="txtName" runat="server" Text='<%# Bind("Name") %>'
/>
Edit item template , insert item template
This control specifies data in a row and coloumn format just like gridview control.
The main difference is that the list view control includes an additional row for inserting a new row
into the table.
PAGING FOR LIST VIEW CONTROL
HOW TO CUSTOMIZE PAGING
HOW TO GROUP DATA IN LIST VIEW
The Login Controls:-
There are following Login controls developed by the Microsoft which are used in
ASP.NET Website as given below:-
1. Login
2. LoginView
3. LoginStatus
4. Loginname
5. PasswordRecovery
6. ChangePassword
7. CreateUserWizard
6. ) CreateUserWizard control:-
This control uses the membership service to create a new user in the membership data
store.The CreateUserWizard control is provides by the CreateUserWizard class and can
be customized by using template and style properties .Using this control any user can
easily create an account and login to the web page.
You can drag and drop CreateUserWizared control on the web page as shown below:-