0% found this document useful (0 votes)
100 views44 pages

Dot Net Lab - 16smbeca2p

BCA practical bdu

Uploaded by

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

Dot Net Lab - 16smbeca2p

BCA practical bdu

Uploaded by

swetha pm004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
yTwvvvVvvVvVvVvUvvTegugavegeveuodvvudgvTvevevereeere Dr.KALAIGNAR GOVERNMENT ARTS COLLE KULITHALAI - 639 120 [ / DEPARTMENT OF COMPUTER APPLICATIONS REG. NO. : CB209 264578 NAME ?Y¥.DHILIPKUMAR v SUBJECT — : DOT NET LAB- 16SMBECA2P. COURSE : BCA wwwee se wvvuvvvvVvwewevvTTTTTY ~wwe”se Dr.KALAIGNAR GOVERNMENT ARTS COLLEGE KULITHAL AL - 639 120 DEPARTMENT OF COMPUTER APPLICATIONS Register No [C903 2615/8 This is to certify that the Bonofide record of the work done by < Dy ipumAR of _i)-yéon = Ben in the Department of Computer Applications, during the academic year 2022 — 2023 submitted for the University Practical Examination held on @3.93.2423at Govt. Arts College, Kulithalai Hi i the Department Faculty in Charge External Examiners a); Rae 2. i ey ules CONTENTS S.NO. DATE NAME OF THE EXPERIMENT. PAGE SIGNATURE NO ; i ee sl 197. 25 JOB SEEKERS eee a E-MAIL REGISTRATION FORM 25-0). 23 | WITH VALIDATION CONTROL ; fae i Es E F 05-099 =| E-MAIL REGISTRATION FORM 4 RETRIVING FORM DATA & DISPLAY IN TABLE FORMAT P7:02.23 ae 1m s ___ | DATA MANIPULATION USING | 5-0 2.23 | DETAILS VIEW CONTROL 5 a 21+92.23| DATA GRID CONTROL 7 DATA LIST CONTROL 06.03.93 . as {F-03235} COLLEGE PORTAL gs Pere eee Ex -No ‘ol JoR SEEKERS Boke 3/1 0/.g8. Aimy TO create a webform vathg HIN Sere confrot to data, ALEORITHM | step :cliele Stork Salt program —) mi crosgt Veal gtedio 200d SEP 2. Bronte anow websPfo yile 2 new—> websPRe obeose asp.net wwebsPte and alfck ok, Skep3iTn the feet ber eter he tom ponents. Such ag fable | fest, box , butten 1 caps down Just check ‘box eben Step cr Appor Finishing the olerfon Couble oltck on He submft butten, Steps: Type tha following tech. rag box C'suctesspally oe. gtepb: Run the program (Debug wl Hhowt Debughhg, grep: Sop CELI SEGDEEEMAMAA TALIA II SAA Ga FE OO OO Oi On OT: We OF eRe Oa a JOB SEEKERS PartialClass_ Default InheritsSystem.Web.UL.Page ProtectedSub Button! _Click(sender AsObject, e AsEventArgs) Handles Buttonl Click Session("id1") = RadioButton! .Text Session(""id2") = RadioButton2.Text Response.Redirect("“default.aspx") MsgBox("SUCESSFULLY") EndSub EndClass | wee RESoLt :- Ths the webyorm WO Crarbeol ouccessfilly anal the otlpue was Viowped ©COCCCOCSOSCCSSS GEG ISIS IDID III II IESE PEEIETEEEEEELEEI IAD ISA IIIS EAETYH Oeddu EX.No! 09, E -Mafl Reeadration FORM Witt walt ppTIoM onTROL, Date 3 23.0).93. AIHy TO Create an asphel- web fern) eatha Wee—Centicl to entes mah! replibra ton form, ALDOR MHM * Stepiicltek stort 7 all program — mbctoogs E Vbual soos, Step2: éreate a new websFte PF le > new —» webstle Cheese asp-het webshe and clitk or. Step3:Tn the foot box elected the - Compenentg such as fable , tert box, tect ava, button ofeck box ofe., Stepy: after Pi Shive the olesiqn Aoublo click on the Aubmft pbittton, ghep&: Type the pollewso— code wg box t'e-mat!l Registration Successfullf), Stepb:Run the program Debug _ywithout Ae bregty 4, Slept: step ' é EMAIL REGISTATRIATION PartialClass_Default InheritsSystem.Web.UI.Page ProtectedSub Button! _Click(ByVal sender AsObject, ByVal e AsSystem.fventArgs) Handles Button! Click MsgBox("Sucessfully Registered") EndSub ProtectedSub Button2_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Text = TextBox2.Text TextBox3.Text TextBox4.Text = TextBoxS.Text TextBox6.Text TextBox7.Text TextBox8.Text =" EndSub EndClass Mittin ee. Se Se OO Oe eee ee eee ee Se ee eS ee OUTPUT: i ee re OO OOS OOOO Sree eee ee SC Ce eee. RESvit Bife. - Thes the ematl reebsfration germ wos Created guccessply and the eubput 4 veupiéd ww wwvvvveeveveevveevvvrvvrTerTerereereeeee *pewoleg Date '03.02.93. E-MbIL ReEvsTRATION FORM WiTH wvaLipation coNTROL, aay AIM: T] Created Wl vonkrol with - validation ALCIORITHN vBual web foo! | Shop3: a mew | webstte vwomponks bern zeke, Shep: after piishih 4 the program design clouble clicks on the cluign the Susmit button, an asp.net webform tabq fo created E-mail reghbrabion conbol Stepr: Clic Start —7 All progrann —) reeset afudio 2008. Step2 Geale a wew website fice 2 fis | News website ohoose asp. ree Click ok, websrre File 7 Net ead tent born _ button cheek guch & fable, on =, é EMAIL REGISTRATION FROM WITH VALIDATION CONTROLS PartialClass_Default InheritsSystem. Web.UL.Page ProtectedSub Button! _Click(sender AsObject, e AsEventArgs) Handles Button! Click MsgBox("HI YOU HAVE SUCESSFULLY REGISTERED") EndSub ProtectedSub Button2_Click(sender AsObject, e AsEventArgs) Handles Button2.Click TextBox1.Text TextBox2.Text TextBox3.Text = "" TextBox4.Text =" RadioButtonList1 .Text( RadioButtonList2.Text( TextBoxS.Text TextBox6.Text TextBox7.Text =" CheckBox1 .Dispose() EndSub ! EndClass SETI I AAAT ATSC CTTIS ISIS ISISIIISIIIISITG OUTPUT: BALD (agra CREATE MSSWORD RVG . COMMUNSSNORD (ET Ce ee Steps: Drag a fent born aha + to Drog alick on the og elod Feld vattolation propaly oR tent born Name Cot 4 Lvetan ME messaagg jo type Yeud Namo. and Yt ets of’ plu to olynamie, Stepb: Pra9 component valltdatirn, Ws a B6pocetted with the fone and table form the fool born On the Lompat and control to Byhamic. boo ea RESULT: Thus the valtdétion eontrer. form ee torre ted guccess-fally ond wutpet 18 Veudted , TUT C CCC CCCTTTVvCT CTT CTT TTT TTT eI T= es RETRVYEVIWh FoRm DATA & Display 0709.93 ty ‘TABLE FORMAT. x © create an anPnel wabTern uslva, teh torso te enter ta dota and revive From: Qep ly Click Storr > AY proycom mal eyotstt sina gradi 2285 Shp vie Creabe & wee webride Fi veebste Cheat ovsyrwet Lie ee Chop 3 - ‘Tn ies tool bom a gue > tebb 9 tot bow, eters stp ptter F Je own » 3 Wek oF: sighing ase ign Pool Ha Subnet button. eos sips TR ! pebeg > RN cotton | gteph - Run the ester ee bebuging. ghp Stop. See Ieee eee es MARK LIST PartialClass_ Default InheritsSystem.Web.UI.Page ProtectedSub Button _Click(ByVal sender AsObject, ByVal ¢ AsSystem.L-ventArgs) Handles Button! Click TextBox6.Text = Val(TextBox3.Text) + Val(TextBox4.Text) + Val(TextBox5.Text) EndSub ProtectedSub Button2_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox7.Text = Val(TextBox6.Text) /3 EndSub ProtectedSub Button3_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs) Handles Button3.Click Session("‘id 1") = TextBox1.Text Session("id2") = TextBox2.Text Session('id3") = TextBox3.Text TextBox4.Text TextBoxS.Text ) = TextBox6.Text = TextBox7.Text Response.Redirect("“default.aspx") EndSub EndClass RESULT +~ Fee scecaving, = Fro. Bek cvented Aorryuly — ond ths dota in a tolole opt = dn Vested: ener uF Dares Data moanprction Using Delos ¥ hot: eee | \yiovs — Contyo).. a ee eee my DIM~ i k 0 Tao dess\ayy A webpage application wrihsy y P spe Neds Whidr —-Perteam boric data rronipratid, aan rl ev olpboula = Wes . ©) PL Aorvitin : Deku Ny aw. 2 On\ 2 @) Step A Cateps tn obfatls view, 3 3 \. thek We Symbol un 4% doll wien S 3 o. those dada Gowrta + vw olata Souree ) | doa bue ek = ne forsee > Chenge : ° alata Souyer & m&b 3 dick . Tosh (oes kone Connection Stucseded > : ; “ms bor appedth I~ fs Sven | > 3 bck tm dalton, ; ye Wick Sent” UOT sess ccaeddddsdd 6. ul “weed” b. ber W aq. kek — odvomerd ond debct 1 Tree , Vdoh B DELETE Stolement . Ss ete Of Q. Uiek “Test asony! " Wo Gh YESS: Ne Delo towed | lack) one arate seep Bi Cue Sore Connection tn detoals Use) kee BW ig brid View oe vick nee ola Sore > dato, bare > ok Step 2 to /b& Then Contin Stepd to (py 3. Ure Beto Forrrat Ye SOW ca tods in svt dota Fox VP YOTE DELETE Command . RaPlaw- ses" Ea Ul UCU TC VCC OT COCO oO eC CCC eS 4 \. Stowe > BW progcomm 3 MS OPP rs Rew. >. Oiek Blank — dota bast J. Uda ~ Brey ” Chowrg Location » and Awe doa bar 200 © Forrnot « anes Mire break. Ss Right — Uae in tae tab ® cbaion Nj aw wb. Now 1 enter me Field varie daba ate. F Bwe ul oe @, Now, Open sve taal. ee eee an oe er ee ee SO OG 9 8S SE SS OS a oe ee = 7 STUDENT APPLICATION USING .NET ImportsSystem.Data.Sq|Client ImportsSystem.Data PartialClass_Default InheritsSystem.Web.UI.Page Dim con AsSqiConnection ProtectedSub Button!_Click(sender AsObject, e AsEventArgs) Handles Button! .Click con = NewSq|Connection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C :\Users\welcome\Document s\Visual Studio 2015\WebSites\WebSite4\App_Data\Database.mdf;Integrated Security=True") con.Open() DiminsertemdAsSqiCommand insertemd = NewSqlCommand("insert into values('"& TextBox1.Text &'",""& TextBox2.Text &"',""& TextBox4.Text &","& TextBox3.Text &"") ", con) MsgBox("inserted") EndSub ProtectedSub Button2_Click(sender AsObject, e AsEventArgs) Handles Button2.Click con = NewSq|Connection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\welcome\Document s\Visual Studio 2015\WebSites\WebSite4\App_Data\Database.mdf; Integrated Security=True") con.Open() DimucAsSqlCommand uc = NewSqiCommand("update Stud set name="& TextBox1.Text &""", con) MsgBox("updated") EndSub ProtectedSub Button3_Click(sender AsObject, e AsEventArgs) Handles Button3.Click con = NewSq!Connection("Data Source=(LocalDB)\MSSQLLocalDB; A ttachDbFilename=C:\Users\welcome\Document s\Visual Studio 2015\WebSites\WebSite4\A pp_Data\Database.mdf; Integrated Security=True") con.Open() Dim de AsSqlCommand de = NewSq!Command (delete &""'", con) MsgBox("‘deleted”) EndSub ProtectedSub Button4_Click(sender AsObject, e AsEventArgs) Handles Button4.Click con = NewSqIConnection("Data Souree=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\weleome\Document s\Visual Studio 2015\WebSites\WebSite4\App_Data\Database.mdf; Integrated Security=True") con.Open() DimscAsSqlCommand from Stud where register number=""& TextBox2.Text se = NewSqlCommand("select * from Stud where name=""& TextBox2.Text &" ", con) MsgBox("selected") EndSub EndClass ee i eee OUTPUT; aaa aaa ee ree re FREER RPPPPP POR ea Ly ae] DELETE: SELECT: a) Enter Ae Oo fen Necond Wo) gque ke again | \N) dog = Maa datnboare, | | | | | | | } | RESULT * : | ahr , We ymompulation PYeptam wes ch) eee oof: a iw _ ee pore ak : 2g Exwwo' Ob ie ead ee DATA GRID Contiol . Pe |. AIM »- To Crete on wd. applica on ding aid vied jo abr \wipymolion Exam tobe on [mictagakt oO FFco = OA do mecton , ALhor tym t- trvid Views I. ho to Wid vias — Propaies dvonge oun Qienrdi Rullen £ Aule Gourd dhabete Ruiim OD tu, 1) he to olution Byplaver. | | Byt Beaver /Hotabayer | 2) ight cide age pata > Add vaw ed | B) Usk addy & salt Pex — Jeading , | bh) In fewer Expalovey , Table Ceight click) pod Neo toble . <) Ne Entel teduron nome 2 Pola tye ee) ink nay. Se 24 bY met —Paiemary ay FON Vd Ceight ik dd & | Primary key), 4) Tr " cdumn propmiies” chong — Sds0b¥ Srectication CIR duty Tre) , Q) Now 5 Jove WA jobh. a) Uk ok te) Now odd Yome cetows jo Sr Asbk- Wy So Die ae Pa tbh 2 Show rable dota . (2) Now, Enter dix teers od yen want « 12) dik < in dvid view, Uy) Unooke new data Aowe. 15) clice olatabaye > click ok Wb) Uroo bb pare in tte wrrbe hex EX -Dalnbese dl Ie) Ubek nent a) dick | #’ 1a) pick eed hick Te aury”. po) Wek Pinsh al) ode “Some bode s 2) gave and Bun 23) qo twtr -yecord in ACCESS USING FRO ImportsSystem.Data.SqlClient ImportsSystem.Data PartialClass_Default InheritsSystem. Web.UI.Page Dim con AsSqlConnection ProtectedSub Button!_Click(sender AsObject, e AsfventArgs) Handles Button .Click con = NewSq!Connection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\welcome\Document s\Visual Studio 2015\WebSites\WebSite5\App_Data\Database.mdf;Integrated Security=True") con.Open() DiminsertemdAsSq!Command insertemd = NewSq!Command("insert into grid values("& TextBox! .Text &'"'"& TextBox2.Text &","& TextBox3.Text &'","& TextBox4.Text &")", con) Dim com AsSqiCommand com = NewSqlCommand("'select * from grid", con) Dim ds AsNewDataSet Dim da AsNewSqIDataAdapter da = NewSqlDataA dapter(com) GridView1.DataBind() MsgBox(“insert") EndSub EndClass M TABLE USING DATABASE oudpub wah , de bin id conkch Qeatom ums dufayly ond re ESuLt Thus | Qn etuted ar fred | | | in | ie Extn’, ort DpptA \x\8T CONTRS) Dok \ 06-03 23 Aims. | To duign on web opplicaton WMS dato | | | Jos conto fs DA. UFeXmation From daly | lan ms awh ond dittloy to febuld. | AY Gory m - Shp. Dalabae Creoton Stork + BU Pregrom-) | mg oftia + me Buen r00% Pehd Nes Wonk dotument ond bou8e tis Jon LRH 4a mE d00 e and cee oe Shpai- Tew | seake tadole ' \yiebo > design view Myke 485 sfacderg and Sas Lh, | a) Shes then dovbl Wek on ats toh nome ond form Sa Fol ia Galormakion and Son Sk. Shp hi UeSe re Shp 5 \- Nov » OPeW Tes YUP Website ib Sos > ad) PXeqiam > MS VduUal r oes 9005 , Shp b' crete a nas vodbsste | ENS > now - wobay Unow% ah? Mek nebrite ord ide oF « 3) Shp z? plow a dota Sink tovrieh on te vodbsfocmn Shek te Tm qa dxegdoron Last odjatnk ko Ceoy! dota Aruten, dhoow yao daha Ze\t option y hip 9 t- chene — dokaloate opin dick fs na toynection ond = Adc «ha dakole, «Won? te Conoco ond Uk ok. Shp wo Belek Hs babls rome Atop daon Gar ond Ade tahun. Gtip wy, ick odvoncerd orton and tert Me quay ond dick RW, Stp 12 to doign Sa sabls ond rb ch Yerastil) Uiyeation — Pyor. WR" haytemtal ", Bop Sy Run thr PYogvean | Dabyg + Save worihout db Uging ; Shp Glo, Ran Aka ColuM ImportsSystem.Data.SqIClient ImportsSystem.Data PartialClass_Default InheritsSystem.Web.UI.Page Dim con AsSqlConnection ‘ ProtectedSub Button!_Click(sender AsObject, e AsEventArgs) Handles Button! Click con = NewSq|Connection("Data Source=(LocalDB)\MSSQLLocalDB;A ttachDbFilename: \Users\welcome\Document s\Visual Studio 2015\WebSites\WebSite6\A pp_Data\Database.mdf:Integrated Security=True") con.Open() DiminsertemdAsSqlCommand insertemd = NewSqlCommand("insert into emp values("& TextB TextBox2.Text &"'"& TextBox3.Text &'","& TextBox4.Text &" Dim com AsSq!Command com = NewSqlCommand("select * from emp", con) Dim ds AsNewDataSet Dim da AsNewSq|DataAdapter da = NewSqlDataAdapter(com) MsgBox("‘insert sucessfully") EndSub EndClass a2 ] ie en in in in in in in i Bo 4 1 18 18.8 ee D. REQUIT- thus ty dela Unk torah — Hogsam Les eneried oy§ tte (oulpt wa varia: Si {0 Exiny! 08+ | Cobre PORTA Dob, 12 v8.03 2 a Te dewlp on ebtite od coege Rat tol Ode nok de, ALhorwm)- Shp 1. cide Start > All pregsewn 5 MM Ullud Studio Qpos, Stip 2 coxa a rae wobsife 1 pile —* her webite chee aap neat vaebhite ard die ok, Sp Bt Ww ate Fool bor lect the Lomporast, Such as tobb , tent box » imag , link bedton, dhroup dloron dt, Wt boey otc. Soph. Drag image form teal box and Jo Jk “\mago Ul ” Shp 5 To Seb usl ta) TD Josh on ve ) Stay E+ Beard, WW) Wed fis wage ond eopy JE ©) We — gelution explovou iv tte OXtwnk ube ond fate tte image on Jt & he Ue dra e sco Gm VSeqgqueqgoaoacqcuvouoocouneweoeueeeeeneeneuunwevervvw” Shp by Fe Ack WyPedink Uw tte wodbAlte od Oick sper Kink —fatarn ta rook bow and Jb Uh, waguite Und Gan Ma PY oRerty Uindotd djdh 2h, be FBTo odd te wobformn dhfoulk. 9 and cfadl Bs dopulb h, op with ln a wither te Filet Na vwblam+ ok. Shp @- To Obyign ste dbfadt 2 ARPA \W doy on. a) dvog He dbfull 9 -arpn She ay to olsign tis dbfaulk 3. 0aPn. a) cick dopull 3.aten Sn tro fale D) Tn ate took box Fabect Hie Commporant ond dwign qie — olatabay connection fox Pyar olebasl, 4 Shp vt TO are His A&Ph. a) Wk tt ob AN Sh the bab, o) Tn azn fool be Aobeoled the. commPotands bs dignirg fo ‘okt entry, COLLEGE PROTAL ImportsSystem.Data.SqIClient ImportsSystem.Data PartialClass_Default InheritsSystem. Web.UL.Page Dim con AsSqlConnection ProtectedSub Button!_Click(sender AsObject, e AsEventArgs) Handles Button! Click con = NewSqIConnection("Data Souree=(LocalDB)\MSSQLLocal1DB; AttachDbFilename=C:\Users\welcome\Document s\Visual Studio 2015\WebSites\WebSite7\App_Data\Database.mdf;Integrated Security=True") con.Open() DiminsertemdAsSqiCommand insertemd = NewSqlCommand("insert into details values("& TextBox1.Text &","& TextBox2.Text &"','"& TextBox3.Text &""& TextBox4.Text &"',"& TextBox5.Text &")", con) ProtectedSub Button2_Click(sender AsObject, e AsEventArgs) Handles Button2.Click con = NewSqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\welcome\Document s\Visual Studio 2015\WebSites\WebSite7\App_Data\Database.mdfiIntegrated Security=True") con.Open() DimucAsSqlCommand uc = NewSqiCommand("update Protal set name="& TextBox1.Text &",fname="& TextBox2.Text &",address="& TextBox3.Text &"dob="& TextBox5.Text &" where name="& TextBox1.Text &"™", con) MsgBox("update") EndSub ProtectedSub Button3_Click(sender AsObject, e AsEventArgs) Handles Button3.Click con = NewSq!Connection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\welcome\Document s\Visual Studio 2015\WebSites\WebSite7\App_Data\Database.mdf;Integrated TextBox1.Text &'"", con) MsgBox("‘delete") EndSub ProtectedSub Button4 Click(sender AsObject, e AsEventArgs) Handles Button4.Click con = NewSqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\welcome\Document s\Visual Studio 2015\WebSites\WebSite7\App_Data\Database.mdf:Integrated Security=True") Security=True") con.Open() ve Dim de AsSqiCommand = ed te from details where name: nand("select * from Stud where name="8& TextBox2.Text &"", con) ("selected") EndSub EndClass OUTPUT: INSERT: | pacteee ice ees oe hie ee: . 2292935933339 3993 AAAASDASBA i (Lweewwvrevweseeeeeesese ese serT ee DELETE: ee SELECT: ee ee eR ne a cc ctl i pegory \- Shp '- to Rone «fe Plogtam. gtp 12 Run Ye Progam \ pebug > Hort — vsithout | | cbobuging, we gs Bbp. | ie t Postal” yroytam Usd gnewted ar ete out put wo —yoit'ed ,

You might also like