0% found this document useful (0 votes)
10 views23 pages

Net Lab Work Part 2

Uploaded by

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

Net Lab Work Part 2

Uploaded by

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

Q.6. WrHe aa prograrn to handle aa fe Po Ct.

b. lheen 9thethes te exti.

ushg Sytden

NamlBpaa
AwHandigbanle

'enanplata'":
Mcreate end we to a fa
WrheTofrle/buwan,

3
Congola-hfklne("edoes n enCH ")

/"Ale Comdord:f Cenked":


Carste Wnsteline
3
condert)
flevane, rtig
[buNane))
(restélet
wrtea Ble.
wsiter.whil,linelconet)'

BibisblshinyfeNon)
Hete bot
rern file.

rem Yeaser.ReadroErdlJ;
3

output:
7. We a
Vaweg.

aç dn tm i4 wti LINg.
b. Ghet and hou au
the malhirg iny
cC Atlen and khas the lit cda'nin
ly

vsta Syden. Coecfons bhenen


namckpoe Strmrgle l2nEnanple
clas Prg m
slat void Main (stirgt) argt)

BAnu appla, " banana", " cas» "dog"

rameg ii

Conole. Wfeline lnamey:

any. Comtais(
Vaa mathimtding- Hyligd.twhene (namee
ramy in maebigrigs)
Appla
banana
Cat

banan
8. Croake an sp. NeT ore vc Prnjocd and pongor m
wtth 3 akn metods
a. (reae Contreen tema
Vawe nd
Ý; Detais > pass &ane
view
omegondig
how> 05e ViewData
Vie.
and View Bag
Display cwtn 6ne

;ect add new GmboIey Vawe


vawe and

b.Tndo
achonaodd
to
send F nome
Then uS Prg razor

Prjet with Thes e


tue

modee Mode! Fn your


Emaid, Salery
C Now add
membes. Pouvan
prpunty dataSary
aanot akn modu.
modee vairdasn each frety
. Adel neces
menbes. eneate ach f
netnot
Gues,
above
any ore of the
d. eo PipGet and HtpPost the modu.
Os Can you burd valid
&how ow ghate
Cheee the in
Bhow vastdahn melsaye
View reln
vaLwej Vawe: agView
Dhchnlau pobr
Vaue) ating (Pat
td, DaplayDab
Dapuyl las PUbic
Mioset. using
Mve, Cone. spNet
3
View) Vetm
messaye 9Ths VieaDedo
["
Nettage"J"/his
mes(age
is pubife
khawy Rosot
PAchen
View Vot
vewe; Merage: ViewBag.
Rasd TAekn pobie
(ttong Delals
vawe)
publie
loler Home clas: Pubiie
otAsp Usng
Mue (ore. Nonsa. (otoler Home J.
Aoors andcotarers Creale 8ep.: 2
CneAspNÉT ew (reate
Pnjee HVC
ep. Crete viea:
J. Delaig. cehto Vieusore
THte"7- Detau'
ViewDale[^
3 easaje<P>

Vawe
hau,cn (vies /Heme)
Q.
VieuData TH7tthow'
["essage]Jp)
Za how slhes Viewpee essaçe</P
VieuwDate Meesag
soage:
@iewBago
<P>
VeData Me
<p
Viaas/Dr_play) Dala
DiplayDalacsh 'Tte"I:'Dßpiny
iewpata
3
Data /hes

ViewBag-Vawe:
vaLwe-

valve P>
p u: Creolo Hode cnd Validao
J. Node-cg (oden
Conpomendode. DalaArnotahoy
Syden.
g less
pobre
qetiSeli}
fuueName Veguind. " adoress.')7
Pobite string Enahis enorl
Irvaic
pub1ie sdring Ernatsgetisets}
Salaryis must be a poshe
esag Salary
dooble.HoxVaue,Er
CRange lo,
omber. ")]
deemal SalaryLpel,set)
pobie
Vawkos
tor Hoder indng
Crndees Acbns
|deps.
J. Home lotaeilesG
LHttphet]
ResuH Hadey Brndiy co
Pubie Ddch
retn iew;

Brndiny (Modeu moder )


CHHpPos]
Dhcbo ReoLH Mod
pubie
Modeebdale. T vatd)
Pl "Mode vad."
ViewBag.Nesage
else s Vew(las.Nessye
vet View o
|&e-6: Crate Vies Hodu Bnding and vo Tdots.
I. ModeBding, catron (u'aas/ heme),

mmethod- "'pos"'s
Lde casstorm- qmp' 4labees
Llabe "Ao Nang "> Aue Name .:

"Auhame'car ord darya 'y


ap.validasn- for -
<ypen
"rm-qmpl's
EmaiM cais:
name
"ema" Pd "Ea
"emas clas
sp.vaLldabm
Ldly Clais "prmgr 44laboy
>Salary' name"salmy" clas
Llobel or solay'Pdohsalay'clas:"et.dange "'s
: "nombor" "salay'
Linput typevatdatr
atp- fr 'sbm/
primay
Cat : "bn bta
hype "Sobm
/butt
zlbuttan
Outpor:
Hom 2nden acbm
tue
Detau? vawe: Helo,
Heme )
Deta's Hello
fen achn
Vawe
Hmel &haw VwewDa
Thi mesaze fs
VeuData Nesayes Th mesaye s
9. Wrle a program hat Bhaus the vse ADo-AET
NÊT CbreMve Projeel.
tor AsP.NET
emelya nane
ar Create DaBabase and Table Ermpleyee (rd, seves
depatment, Salay foned date) hatsSLand oretFt tolte
xen dala
b. Ceate a torm to ge table tn
c ehas Data tm ar
d. update Dala tayh gour

Bep
Erd we tmeded a
delabase Erpleyea. Dg' and atabk
(wam 'bepatu
Coumny DJ',
namad Employee' wth te
'Sala'aTonad Dak'
Empoye'
ramad' to vepraet
Sdep
wecreadd a mode
tue tabte druch.
pubrPeclass

pubrie Pot DJ jel, se:)


pubift Senig Name{ getiset;
Egeti selsf
Depantrod
Pobie tring ToindDae get,sely)
pubre
pubrit Daldie
3
Empelonne' wtth achene fos
we reatod an

Ubiry Sifem pak:


Sym Sien,
Jadei
Uhing
amepao EHS. Contouns
Empiryeelon Canhaen
li:
Pob1fe ciag

Pubie DAchonRaot Drdor() Spllmeckn(nekashi)

"SELECT FPoN Employe


Salomnel queny conechm)
Sqllmard Gmmard new
(mmard Eleubeleatal )
Bplntaleades reades

uthile (rde, Rado)

Nane:reasb C"Nan.Tliny)
Tewa ["Dgnea7. ToGoigl)
Dypontr
ConedDateTinlreder "ToindDat )
Joind Dale-

3
Bepu we creled sfrihny
vieus f emplaya, crexdy
delesn
edhry extry epigaa, and oifoniny
Empiras

t Departmend lth)

@forean(as emplne in Mede)

partment <Jhds

Z1Heb)
8lepy'- e-: YJo.
open
Run pen v- Uy Aepl: G b. a
frramworKk.
Create Greato Add CYeate
tethe 3
reste tplainsorCacdeGeneade
hennate pubk ’Merosoft.
Enbhytinae’Hens
ataka pubpobiie Syoem.
Pmducass reak Jecogs
koeo
pelkage u'e ARsf Cntover oode a
wg fnt a Dada any new
cleeima Hiry No
Dat abye CompnentNodet. du o4 New Clas
Managen goor and base Nuget
&how Asp.NET
Gornme EnttyEnsty .
PrriceName
geti wogettsp.ET Po ano
vies cwh
framwox
Pramwox pnedPataya Paca
Tabe:
getse:3dgel; sel;} COeCore
Gntoe. Data Usig
Table eaoh
each
es ConotVleneaws.nd
sel:y eles Care pmjeet
Annstaky lore.y(one. fAfepep NUC
ore
"anage
Sg15euey Muc Enkty Enky
ed
Prnjalongeosny
Nubet Pnjeet Famern cwth

Package Stnh
Chsse Sleet
La thody, Cander J. SeleetChase -
-acto
Prodol
Zhaselhe> pob te ve reabe
"Hable">
LhablCleass @mdel
<pndd'LrdsVieukpmdual,Vem Var your Cardol
Dblnert onConto
"Delaiy Lthead> "Prducd tue
Pmdoc PAcho le
L4dsLtds¬ "on
beydy wth and
O
Resut you taien
te-id prducl.
ppdvch -Contert.Prdo went cak Vieab, Weus
Trder
Prica to choo Ubng
Name ()
z/4s e, Jle
Er:
@podu ae. s"
ds Te mo
cTd"> LreH dei
Cono'k "
(); clay.
Debin .
<la o
|s2:
sdring pubsie YhmgAchnlet Sel
pbi
ason)
c pubre
HHplortod. nempale
Mýprj
Gntoae Cooie-BEserhal
3optoztrs.hue: pubie Asp.NET Sossfon .
We
Cveary 3)
Yetn Uietano:
TAcknaut Coent cas Mimso
vopdVo Core to a
("SessonSeasion Homelonta a Set
poggram
poygm
t("Setsvn HHplortend Hreltoves otgoresentas ses
GrelSesn SelvalSmyl fon t
e :Gnto d
an&how
Seastn )"Usenthasens to eive
Ner sel (2S dale
vawe: been
sel. and evPu seAsin
hehi menagemant
(/usela") "An):"), ete Coechen
"er vawe
Ssien Servtay
Nane usg
yo
" vasn
demongrak |Pcweepsvia
<head2!DoaypEhtms creaded
L}he>
lbody> tbuttn Sesion a
Set
Set view
ype ap-SeASin Sessron setiy tr
acdm- the
"Sobm}"> L4te
Vawe relia. allosy
"SedSessin'"metSeht ed: |62>

ses te
sio
Llbuts cndniet
'pos
d
aTempDal
ton
")TonpDaia
of orheytetempDalo!)
PAchnResud
pubtetnm espie")
use
te;
.sped
(ore. Nezsa_e"].'hauo (maage))
bmp,
ox
shawmethade
ranispaaHmalntes: het
h acton
progvam
Cahaex
MyPnijed. ("
diegtnchin Vetrn Grent("TemDete
mtlnsage)
methed!o
SPmpk class TempData
pubie rehon
a
Wteacthn Pobi?e Use
QJD.One
he
Ho
e.
he pobiDAnResst
re pubilamatpae
NyProj
ieCnhony
ed. Using
poamtor. atom Wea
ocussed Casg Nemsot.
wtu
dapay Fne Homelontrus:
dohan AepNelloe.
he by
prnasd efperi Cnones Muc
qoy goay rem,
siy
ny
paunhs
Jhutn)lisgre
addEvontor"grar
Chu
b 2bte)
propan ror
(ia Gaer Chege By14f'nybun').
mpt
butn bausgand
on nd butm'>
Java9
pye Backg
6de 'my
ihyle:
ofa ktmis
DocTyPE
}1 Change
Client.
coor
Lhtes
r. qedeurawbody.
bawgmnd zlheadsZbuttm Gnor
Charge
aWre Lhead's
zhtos zbodys daomerh.L(scmpt>
Llbody
doumnt
Ju. the
ody>zb ’
This Zsonpt 2Do On 8
Thls lbody> Z
is heads
tane fs Lhi> stdoumnt) Bott WrPe
<butnLbuttn $"#fade?d).
30) Out
faJ
d)e CT
a Jbis
<(s<lemjhend'pt) s $1"h1")-bide l; cdte) YPE Uu a
Gnlend
s btmi> Jouoy
d
Hadtng Pd-'tadelutBtn"s
," a ready JQvey and
hide lgnchonco adeoit
Boto pogram
Erampe
"y element
Fade Hrde $, b
21ktes hrde
Headi
Out rg wth
<Hi>
Elemee Pd
<(but) elemend
ag
<lhutay
Cr
Ry
a |8 ’(oDy ’Seleet ’h vie
’ >open J. Qs
opon Pastdo >Choose Seuel>chose Selee! (sede besfTh
or
an a
and "nwes" Soiwhn, engi0 how
end locabon Asp. web" a
btni "Agthe and
paste "Empty"ermplate NET thad
fiu those' Yoor Eaplrer,
eheae New
and tades, 'angulas,js the an toWeb how
cnte tu Save te
HAd"pnets Gntens Apcaho you
ad as igh te lei
elt and pojet Can
a an or cter
bahe He"hNa
diselky the
bdabay Ne sect 'and side
fod yfe
o on bau eate
yuegs Pile. cbwntoadad and tlem your "web cricprrovide Angulas
Name in ciandcxAa
tan pmject rreate!
Created Fom a
Sowhon " nam J9
n Chese 3
be
<!DoCryPE
himl>
4 Zheod's
Choase Ron Zbodys
tue 2/divs
"View ick
2picades Conhen|
3)3
fn on
"pp- 'my
Bmuser
htoa Gotoar'functo
AryuAul
'Hes,
to o
Sowbon
on
e
(8
ekplorer Sope)f
appicahs
and

You might also like