tailieunhanh - Practical Database Programming With Visual C#.NET- P18

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ả | Build Web Service to Update and Delete Data for Oracle Database 873 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 OuneertOerootdi rectory if you haveaetl on sthatOpenicternet ExpSorer eedbeowce toouedesieel WebSeeaite project WerPtevlceaQ LUedaieDeielsar leaeierfeLieTejedsneTiaptcr 9 located at the accompanyingfta sfta ChepSeol .Lope eed atrnew lolScr Chapter enmeiSWebSerencet crltrmtXnlollowingmotifeor tions to thrsprojeermrneWidddwsExploeer windows L Chhee Ae rnei Wet .frete e from WtnSeooceOQLUc to . 2. Open the App_Code folder and change the name of our base class file from to . 3. Open tlieApp Code folder and change the name of our code-behind page from WebServiceSQLU pdateDelnl . racleU plate Now open Visual 2008 and our new Web Service project a-prfonn at assn e 1 tern eL nts of the hies we renamed above. First let s perform modifications to our main Web Service page . 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 . Change Class WebServiceSQLUpdateDelete to Class WebServiceOrac leUpdateDslete . Second open the base class hie 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 .

TỪ KHÓA LIÊN QUAN