Web Services Week 10 - csesalford.com


3 Νοε 2013 (πριν από 4 χρόνια και 6 μέρες)

113 εμφανίσεις

Web Services

Week 10


Advanced Topics

Learning Outcomes:

Web Server Admin

More use of DataGrids and DataSets

Internet Information Server Snap

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

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


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)

>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