60 likes | 188 Views
Web Services Week 10. Aims: Advanced Topics Learning Outcomes: Web Server Admin More use of DataGrids and DataSets. Internet Information Server Snap-In. Administration tool for IIS web server Manage Content, Security, Logging, Virtual Directories, etc. Virtual Directories.
E N D
Web ServicesWeek 10 Aims: Advanced Topics Learning Outcomes: Web Server Admin More use of DataGrids and DataSets
Internet Information Server Snap-In • Administration tool for IIS web server • Manage Content, Security, Logging, Virtual Directories, etc
Virtual Directories • Directories delegated to be online • ASP.NET web application and web service project directories need to enabled as IIS application directories (type of virtual directory) when moved onto IIS from elsewhere • Can do via IIS Snap-In • Right click your directory in Default Web Site • Hence from properties dialog box click [Create] • Need windows admin account
Moving projects between drives and computers • Options… • Use IIS Snap-In to set project folder as application directory (need admin account) • Use third party add-in for visual studio to set project folder as application directory (exercise) • Create Setup File (i.e. installer file) • File->Add Project->New Project • move into ‘Setup and Deployment Projects’ • Run Setup Wizard and select to include all output groups See technical issues doc on module website
Interaction with Datagrids • Datagrids can allow users to select items and hence make changes to bound Dataset, which can hence be reconciled with database via web service • Via properties window click ‘Auto Format’ to choose from a range of styles, colours, etc • Via properties window click ‘Property Builder’ • Add Select buttons via ‘Button Column’
Interaction with Dataset • Selected Row given by int i=DataGrid1.SelectedIndex; myString=ds.Tables[0].Rows[i][j]; // get jth field ds.Tables[0].Rows[i][j] = myString; // set jth field ds.Tables[0].Rows[i].Delete(); // delete row