0% found this document useful (0 votes)
82 views

Advance Web Programming Unit 1

The document provides information about .NET framework and some key concepts in C#: 1. It explains that .NET framework is a development platform that allows building and running applications and services. It uses common language runtime (CLR) for execution. 2. It discusses some important features of C# language including inheritance, polymorphism, method overloading and overriding. 3. It briefly describes different types of assemblies like private, shared and executable assemblies in .NET.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
82 views

Advance Web Programming Unit 1

The document provides information about .NET framework and some key concepts in C#: 1. It explains that .NET framework is a development platform that allows building and running applications and services. It uses common language runtime (CLR) for execution. 2. It discusses some important features of C# language including inheritance, polymorphism, method overloading and overriding. 3. It briefly describes different types of assemblies like private, shared and executable assemblies in .NET.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

clAsSMAte

Date
Page

UNIT-1
Explain NET frAamearki

0NET Fronme tYk aplatfnm Ceaee by etoJot


f ulclingeleploytng 0nd Yunning ppcions ond
exvicasmat eNET Hennslog.ie Suth oltkop
nplitsuhon on ltb sevice
T S 0 platem nr applicahion leeloped
Onol co LanguAg iniegraiom
hcu IDE GntgratdDevelepmentEnvironntnE)_
Gfrannt worki a aut ofutiliieo cansybuilding
blockof ourupptcohionysiem
NELEro mnrkpaoviste iaoperabiihy between
aaguage ie omnman TypeSyutt m CTS)
QNET Eramt ueork also intuolesthe NET Commna
Language Puntimi(cLe) whichsponuibie
mintaiaing tne execution otatcppiicaHons cdevtlupes
ainq tme ET libYangn
ThNE amawovk Caauiitapimarily f Sgfguntit
iibrany of Coclk
Component offM NET frametork
Vsex interface Onel agvem IleCon Cetatsvaiou yne
ofappitahon winonet froweore uth 0
Caaaie Applicaionklindlaua Apai.ca.tim-altb ApaittaHon.
Cae Cla ibrang Beehe 14 uppiie c lioran f bae
Claie-a d weCan Le d implemmentapplicouhm

CLR CCmmm Languouge Runtime) TA i apagramming


that mGnegestve execuhon of g niRnin
Cnyongue thct m E FYametsork

Rq C FVB. NET E#_and so on


. 2
Aa is Assembly 7 Cxploinelittnt types ot
Assewabiie

OAs atmblylo Asp. NET a oile ction OE i


Singlaileox multiple i l Tye qembly that
ne moe tmav onc file contouin e itne olynamic
lak ibrovy (LL) 0YExE te Tne Q mbly cuo
ComAc mtta dlatathtut i Khoan C CSJ emhl
t manifeF
The aisembty mGni festContais data bou he
VerSioning equlv mtdsof th aembly LthoY
nam of tmtQssemly he JecuriH 4uire ments
tmut theae vnbly requi to uA ane we Vaio
il a t fsrn no ofme quemby
)Type ot AJJembiieo
PvakaJse nmblies A pivak auevmb ly S0n aiembl
otinavculalale CnoYtitulay appiicaim whe
dy a kepB C a pmvek Jembuy isuotol hy
tme CiRnb of Ant same appii cehon divec
Jmuchr
C Cem bly
Shaveel CLAsemb lic A Sheel Ccose mbly public
CSsembly ma heee by ulhple
appicaho
alhtth Shaeclaembliesdeeral unpiitcuhfon
Can
wse SoME ODJe mbly Cnel navt aclt penclencyon
Sak iHe cLJemblita An aaJe mblywitn CuY tured
infomahion t Cutoms hi cally Cumecl o be a Sck likS
asembly ne aemblies uee în cleployiny
qlob Q pplicuhios cl mnt laaauagc
Q:3 JAhah a cdittersnt feauresiof languaege 2
O o peintx mquimd pngran tynttatly heve na
ncd fr olirttt_pointer noninudah9n
2Aushe mtmony Monagenent hug garbsige
Coltectio Cclae not dupnert delek keyusorel
EprnaldyntettieCenatnu chora te Clseainrfa ces
Shrutue enunerohiona ond lelt9ao
eCt iEe ability overtoadopertuto f a Cutorm
y pe imouttme Compexitg dutn a mueing ur D
ehurnni allo heneing Chuiains is nst gour
poblen
pptfottribu boecl pregromming This branel
of olevelopntnt allotesa taannOfateshyne anel their
mebeo tuYfne 9usufy tneir behaviour
Antve ohjest inihazsction yntak which allows
Set popexty vcuuta o te imt of object ceciom
Dnision of ambela oprcdoY ) ,wnen even
urhersimpii icawking wi net dlegce types
SLppert fanbnymouu peswhi atlouw w to
mocle tme shape of a tyne thernGn ib be heviour
OSuppr dJhomg ype querit wed piAtueet wim
vaio trms of claka
10 e abilit odein u Sngle nectrou nutipl-
Lacle Aile uaiA neo ktgtsgrol
Nunero impiucehion te egat/tvents metnol
moclel iatuelingCavGante Comtevaianc and metod
goupCMVntion
nclltteeatolato pesin C# t Cccegonzed h
e flouing ynts
Value yoes

2 uue ype Vadur pe voiables Can beabighel, a


valu dliretty tney av cdtmivesl trom e Cies
geenvetu p yshtvm yaluTyne g ntthav
Cel ftoeut which Jtore nubex lnabetiAnd
floaiag -point numbes rtapecively
Refert nce tuneThe rftrence type do not tontein te
aCh6elate tdo ved in a vonablt u y Comtun
fee ne to teVoncbltsea bult in ert nte
yne cve ohjest ynovnit0nel ing
Data y pe
Vcdu tnes Rettrence tyne
Shuch Endme vation
Aluanle tynt boal wDe cleiatd Struthg nkrfate

T tgral type Rea tgpe deúmal lelegak


sbyt Atocu Areus
bgt doulble
chay
Shor
uhoyt
int
unii
1ong-
65 Alhak a clitteentComo l stia temen i n FE

O t Stakewnent
An it atnntnt Constuts Of abalea Extaton eltoo
laj one or mo* Jtakments
Synay l it (booletvn express lom)
/*ste kntnt
etse skaHement
An itStakneat Con be ft0use ol by an opHonal elbe
StaHmentwhith executawhen he boo le Gn xprcoton_

ymtax beolennexpression)
/* Statment
etse
/ stakment S
Ofv oop
T exeuk a sequtn D4 attmcnta mutile imu Cine
abbyeviattne Cecle hhat wnanoge de loop vaiabl
Syntax- foy in toncli hon l a trt ment )a
Statnent 3
while loop
TE Ypesb a stak ment 0Y goup o Sakmen wuile
a given imelition is trur 1t i b te Comclihim
beto exetuhng me 1o0p bocly
Sumtex while (caneli tim)
Siahment
dowhile loop
I i Stmilay a shitt sBaH me ntexcepttat i testb
the Comelition ar the enol of t loon bocly
Syntcux olo SFatement 3
while tondiim);
method Overloccig
nl
Explaio contp of
ith imple m t a f i o n
od ovCNTIeli'ng
m

ovtrloc ol ino havtSame me H i o c annewith


UMethod
elitftrn
meCOncept
SignahTD ofompile imefolymoYphisn.

(3 neeel in he ritonce
doet
can have oiEFeAt Aaa tpe
Mmee verlosclina
ntacc tadnEti
S Me hoalcan be ditter ome
memoe overloaelinetw tunthon) avins
In
ifh citer yA Ond
ame ane rtum yne but
atteel ovrloodinq
umbeY ofaYgunme nha i

Overy iclina hcve Some mefioc Mawne rth


O Me mod
&ameSignaumo.i
T b Concp
me otruntime nolymor ph im,.
( T nere inheri ta nte
(4 ho o verridino howel ev Jome slatehyne
GMehvoeshodd benueblici
In metmod 0verricl ino nen a tunt Hm 0E bane
cta fs cdeioed in the olerivd tloLs alleol 0
OveN Yidinsg
7 almahii inheritante 2 lhat amt elittnt p of
inkexitante

0Tn hevikanse i theConceph e utb build ncos


Clc ing tme Existiac cla detinaHona
OUghlnhoriko ne Cain odifya lads he wcy
we want rakk ne w0bjech
Theoiginalcte iknauenas laueo paent clea
anal te moeliked cas sknown( deiVee o
Subclas Or child claws
Th Cmupt of inherikance fecilitates e uoa biliky
OF ezisRng Coce and hw impm inRgri
pgrams Qnd ocuthvihy ofprogrammei

Tyn kinhe vi tont


OSinelelte inhtmitante
InSingle inheritontet h e t 9 only ont baar clas
anone le ivrecls14meantnchild cla
il Aneeit tne Yonexiie of the nartnt cl
nd e the m
( ultilevel inheritAnte
In hi type O tohem tante mee onty one loae cla
ndmultipte eleritelctaa ore avcuilGlole
M iple inhemi tanL
Tn tmi type ofinheritane nid Can be Cachicd
Lwith t htp_of multhiple inter foce nut oihm a

Hievaychical Lateka inheritonu


Tn tni type of inheyitant e is one pae nt cla
and the otnev cleivod clas nherikaa the same
parent Cla p achiee tmis in heridonce
lalhak is polyBYnhis lhsh O oitfetntypeo o
lywnoxphism2

O PolywmoYphim istue a bili y o talce mone MGn one


foYm
mayexhibitolitent_
O O RXOmple a n OpeNuh om
behovior in cditternt itucHons
behaviov olepenclo upon the yAE Of ha uutc
G e
on te opecaion
Doly moph ium is extensively wDed hile lmpl&menti
inhexiksnce
TYNe 9dpolgmorphism
OConmpile ime poly movphiim
i he exisk n of uttiple mtHscl i n he
Cvgummb in tyne
Same nome but sih eiftntai
I e CCI alb o calle d7 mehod
C nol MumbeN
itioSituuhos hm£e
OvUrloCeling ae Can we
weneec d i mpiemed muiple methoclh I
similaY unCHoncuiy nc weopl ogivemem
e G m e mome
(2 Run time polywn phiivm
I a tme c t of un Hme poly m p i s m C n sbjt
y c l e A e n o l i n o o n te
be have i C cit nt
hith I t is Med + ha metuoo
Com tty
clunemi
OvtYiling bi thocB i s clo knoun
lbi'neling oY ak bindig
.9LalhaB areditteent Jbano honcll mcy Meth0ols

OEoxmat C mtum o f mart d Jhdng


esplit O splisbme srino into 3ubaming
S l hring hurnu dubsmagokasng
Compu ) Compe Stmng 0bjxt
plece ) yeplqce te Specifiecl olck cheraCter f n
tespeuhtd neu theractem
Coteins () Chec netmEx theSAring comtes aa
Subsng
jst te given Smana mgtn
Specied Sepa rCoY
Ymov ony eong o nel tyCUIina
hi kspace
Enels lalith ) Chede if Jma enct ith h

ncexOf O = gturw me position of ne speciitd


Chevaskr 1n he smag
emove ) Yharas ch racteo dronm astionq
ToUpper Comvert ine Smng D unexae
13TLDwerO Comvt Ane hing to lower case
PalLrkt ) hn te sicpsdeecl Lsith Apace
oYuim G spe ci hiee unicocM Che rach

Pad Ri3ht )=rhux tae shing pedded uit sncce


0Y wif a ipetiHed unicoclechamacht
on The right
1Stytahlith 0-Che cks me Smog begin wim given Smn
ToCoy Arvo.y)-Cmer e ding t a cnev avy
1Laat Indes DfO-Tumy inclex of tne lcot Occuyece
o aSneci fiee Stia
Date
age

Avrcw oncl A rcyList cess


. 1 0 Describe Cloowh

OAn ayToy a collt chonof milaYdaa-eltmest


oCaHo
StoedCuh Camtiquow m e mony
simplest later mchure he fadh dlata
me
uinn
ele ment Canbe actesu ec diecHy byonly
inlex numbec

by Stuclentin 5Jubject tn thee no ned


oleine indivicdual veeole N ean Jubieck
aHmer we Ca oke tine Cn arroy which l l ghwr
d ata ele ments n ot Con higuow mmoy1o coHo

DAYYOyLi clas Ypeents an 0veletel Co lle Chon o

C 0hjtct oouk Ca be incle xecl inividkualt


i batcelly n al tmativ t on axYey
DHoev unlike axro you can odd aneen
ik fron Liat c aperiiel posi ion uwing on
inckexand hae CY TO ai itei£aubmouhcaly
alo allot dynamic mtmomy CllocaHion adelinsy
Searcmo Cnelorhngittm ia te list
Aro t Con be onR limtns ioned
AvreyLiti tme sop hiuicohol f n o an axrcy
Pge No.
ONIT Dste

LoplainApplicadion
lhan e.cycla.
Om Asp.net paq 2ocecules i
Candang caek that includas
yaou tagea theimpattonmd Boge
Pege i t e uiel a
Load Conkael fvenu,Pendeing ondlmitializaion
Unload
heimpoxtomt feaduwus each

1nitializotian Duing Ahu B\ags we


Contaol em a pag
p th cenolisvieo stat ha not
yet ban iniializod
Load La Ca opaslbackAhe _(oshol
etu caled

Pendening Dueing und.eming3Aaga.


CalLsh Penolen nelhod
20ach Contol omd hw Lach
tenyol gemexode d HIML outpul
aengd 0ith Ah Auting
HIML hpage
Uload Tho Unload event SAaiLed
alan e daga aben ully enenad.
laga eneat pag Oulpud
been Bent de
liel
page on b discandad
Page No
Date

Lienti
e mat seguintly wed paga
Gnd hein ws ane

Panik ettin9 masten page O1 tting


Au Thaum popetty
nit Pead 8et condo puopenhe
oac1 e phopetie o Cohol and
do atablish databas Connect on3
emclo hia on0atly ued fa Custom
Caxaolste ganetat u Contuolsoulput
> Unlead
inal cleanup 4on2enolsk
elosing lolobasuacomnee4ion
Page No
Dste

)Expain age LeLiheegela


Pag
doadednAte Ahe senve mAeMO
c p o c ed Omo Demd hebHDO3
thesnito unloadad omXamonao-

ALRach Rhe Aops methods


ayailasla ohich
Ond oventi
Could be ovennidelon accandi to the
applcalien Z oiher wands,
CAN
oun coele te
the dalaulk tode
Duenhicle hienanchical
T lage elas nclhs o
allallllhu
l contuau the poage
Cemponnila a the page
enceptthu lisectives pant o hi
Contel
Coabel ee o C 3e
dreby addig traa = tzue"geelihee th pa
LwillcOuen tive
dnechie dincctives andeuenk
oncl Apnacing ander
nomd ing Cycl Phasta ae
page Lfe
niialization
utamb.otien A Conknu on Ah page
e d o n a t i o n amo
maiaotemema.c o u

Btate
aeal len Codes
Execdion lla
fag oodeninj
Page No.

ha Benve Lontroll 2
Conbols Q h raal buildling blocks
gaaphicalL twe inter facLwbih
inchide oat boaxa, bdlo chacphoxe
Lut bez labalb ond numbeeua alhe
eilendala maka selecion and indicate
lein pealenenu
Controla Que also ueol pa slsuctunaljobs.
dihu Lalidaloa dala acceu secunil Cs ealing
malen
fhagea and dala
manipuladion
ASP NET se ietypea owweb controlu
HIML contuols
it) HTML Sasn Benvesco-ntau
in) ASPNET seve conhola
)HSP.AIET Ajax Senue comtla
v)ae tontol2 Cmd cu tam Com
ASP NET Senve Conts e h pinany
Conbrols uBed in ASP.NET hu Lonmu
Com be ghuped onte ollowing
Cate gosite
Validatron contola as aa uuedtvalilat
iungul nd lh uwa y uanig client-
Sids deid
Datasouo tonteols Jhas Contab fecuido
dah bindiog de dillanot dala30c
Date uie cotrols- The
and lables ohich Can biacd to dada tzom data
do soubus deplaying.
Page No
Date

peoenalizaion cotnl: Taxe Q0 ued


hunsonali zalon atpage atcDucding
safenenus based ch we

inlarmotion
Jogin Omd Becunity contbob-Jhess contzos
hHavide we autheni calion
Mastor pa Thes Cotol reuicle Dorislent
dayeut mil internface haouphout a
apnlicodlion
lavigalie Cotoh hauCtrohulp n hslp in
mavigatiern r minus teu view _ele
Thes coataol implpraed pecial
Rich contzal
Adkotats,Fiklpload ond lalendsr
fealuoa
Contsol
Paga No

4Ahat aa diextt QpplicadticonLueb glabal.asa)?


Clebal.osa iktonlainacode r upandlig
To plicakian auel AUnbhaisodby ASL. NET
Hltpllo
Modas T ocalzoln h
koot
diuechayaonAsPNET pplicationThis
Centai coe dhat neCholn upona
applicaton-Javel
,97
raiud
by ASLNELandsesion-Levelenb
y HTP etter
module
Ta fallming xso t a impartant liami
n lelal.aso fh:
Applicalion Inik i Thappkicatien I.kAent ad
tlta an0pphioationinitializa h fiat tina
Apliesio. Sland: T ApplhicationSlast Lvent
t h sut tm whtn t ophcation sart
in) ApglioatioAudhasizs keouat
nodul bas veiied hat a_ ue coen acce
sLdlercea

Appkcation-keacluekaguasi Cacku ia
cOmfltien onauthoigalion xequeat ducanul
vApph.caion Disgoed ivad jut blara a apkeats
a dutetedtha b ideal
eaauce
localion a claaning
Page No.
Date

u ipn.Stast TheSoi onStait eont 2hiser


fiut inu whn a ue Sei0n i stantecl
ypicaly Contain o Bnmon initializatior
dogiccodu
vit) Arplicaden Lepinkequethe AplicationBepin Repust
Rach ns mew eguest
COme Ln

vii Applicalion nedequt 7h lst event faned fo


pn aplicalionSageuent

o) Applhicodion. Hatenthicalckeast Tu Aplicalion_ Adu


icali kepust £vetndicalu that a
Jeoaly o he Quthenicated ung you
foym Altantication, hiButat can be ed fo
Chuck fox Ce 9ole andnghts
Applicolion Eaon h Atoplicalion Euon evont is
Lsid whin Lmhom.ollel OCCLu
wwthintu applicoition.
)Oesaion-End7 Seuion End uont i sud
eheneuex a pngh cuo S10n nd tieeut

iApplcation-bnd he Arplhicatien.End 2uant


Last euantoikkinclhat fisedl ohen
diapph.cutioinds h
Pago No.
Date

Eoelain Rbcansig
Are ACeti9uthalion
aoma.g
Guab.con
Setting
uwed ta
olef ine o_wehaite

setlings loned fle hal


coda.ln
hom four applicali on
sepanal
Ahistay you 0onigusadetlings lmdleptrca
somyeu Lode
AstNE Conigunalion D Lasd ta
ducibe porohoties Ond behauiour
kaiau Qspert ASP NETapplicationnloniguwa
fi alp you manageAh manyselting
uelatea Lebanite fock an_ XL
file that cortaims a se eomdiguration
Lleoned Conigusation infasunaaluon ploneol i m
XILbasedl
hee onumbeno ntpoa tant eling
Ahat Can ed Conigunalion
ile Som p8 Slaned _tenert convenientyansid
Wabuconb
Databa tonnechn
Catching aetting
SeviooStalts
Exan Hon.dhing
Seruriby
Baecening aweb.coohie
T Machin.comb fh selligs asu elaived
Th seltingn
Ah pool Ldebtonpgfl
Qre adduel doh Co ches overwiibng Cm
Candlieting cach CentainsOveruriias ony conichog
scting hat weu ealen whil jesdin h e mac hin
umdig fil
i Ahene a Aleb.conhig fle ad lh sroot
webside Ahin hl saely h th
Cacht etinga Ahe
averwiling ny xising-
huullin cache Containu
Ahia ekaite
iu) yeu have subelizeckoea
aL jlicaliou 2ach sbdizac korycan
le.conig fl lhat includs sdtinga ak au
Cnd
foldana at ar
Lontaunsol Leathin subdinaetory To calculat
Jhr allectie peftiog da folda
webait pettingsa 9tad and hen Thia
leb. Con, jpead sto cache
Cveroiting r aisting attinga
Dot

6plaiValidatiaatl
A ASPNET vabdala conbsuals valiclathlhe tu
tirut data e santhalslarless.
tnaucllanbteralad as coutuadictemy daa
gelstasued
ASHAE1 joueridlaalu folloeing.Lalilation codbol
3Kegaiecheld lalidalas Corilnel
ThRaguisadbieldVal
dat Contsel ue lhat dh equineal feld
2et genetally
ut be ocainput nleatent bor

) RangeVolidato Contsel
The onge Validatan tonbol
valu olu uiithin a
vegie hat Ianipul
adetesmintal ange.
i) onpasa Vaidater uctaol:
Compaxtao volut
ThCompaal/alidalas
in OneControl uwill a
valu Ln anethercontred

hy kagulaxkzpreuion Valiclatase
legulanEoypresie ladidaton
alle volidaling th inpul Jonk by matekin
apainst aaten eg.cela Rxpussiad.
h zulan Aygrseas'on sel inh
Validalinh Eaphuauion.prepat
CLdm Vkdatan
T luitn Validatascoslsuel alleuu
icaton spifizOstamvalidalio

roulin

You might also like