Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo tài liệu 'practical database programming with visual c#.net- p18', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 9.12 Build ASP.NET Web Service to Update and Delete Data for Oracle Database 873 9.12.1 Build Web Service Project WebServiceOracleUpdateDelete In this section we willmodify an existingWeb ServiceprojectWebServiceSQLUpdateDelete to make it our new aanX ServicepeolecrWebSerciceOrncteUpdateDelete and enable it to update and delete data in our sample Oracle database. Open WindowsExplorer ant crealeanew foldcrC.hapter OuneertOerootdi rectory if you haveaetl on sthatOpenicternet ExpSorer eedbeowce toouedesieel WebSeeaite project WerPtevlceaQ LUedaieDeielsar leaeierfeLieTejedsneTiaptcr 9 located at the accompanyingfta sfta ChepSeol .Lope eed arst.cthirprojeet.lnt.o atrnew lolScr Chapter C.Rr enmeiSWebSerencet ftoeleUodaleaeteSe.P crltrmtXnlollowingmotifeor tions to thrsprojeermrneWidddwsExploeer windows L Chhee Ae rnei Wet .frete e from WtnSeooceOQLUc eDelP.s.asma to WebServiceOraclellpdateDelete.asmx. 2. Open the App_Code folder and change the name of our base class file from SQLBase.es to OracleBase.os. 3. Open tlieApp Code folder and change the name of our code-behind page from WebServiceSQLU pdateDelnl e.ctl. iWebServ.ceO racleU plate delole.cSi Now open Visual Studio.NET 2008 and our new Web Service project WebServiceOrwkUnd.oeDekte a-prfonn at assn e 1 rnedfaearr.afto tern eL nts of the hies we renamed above. First let s perform modifications to our main Web Service page WebSrrnixeOtacleUpdateDelrra.arac. Open this pane by doxble-olicktng ob it from Hie f rbOiniO .greu ed tt owiieolpsrhirmllui lollowriLgmtdilicatibnsi . Change S x Chdn er -- AdP_Cndn Htnl S_ v eO .Lrnle e dlei ei il to CodeBehind App_Code WebServiceOracleUpdateDelete.cs . Change Class WebServiceSQLUpdateDelete to Class WebServiceOrac leUpdateDslete . Second open the base class hie OracleBase.cs and perform the following modifications . Changt lbs sLss store and thr constructorfi orrne fromSQLBate a OrecleOrsa. Chnigetbn asme of the first member data from SQLOK to OracleOK. Change the name of the .