Using a Web Service in ASP.NET

The Web service is integrated into the project and available to use. You will call the MyDocuments Web service and its GetList Web method. Using the MyDocuments Web service is no different than using any other object in C#.

Right-click the Default.aspx page in Solution Explorer. Select View Markup. Scroll down to the Content control for the ContentPlaceholderId MyDocumentsContentPlaceholder. The code should look like Example 12-8.

Example 12-8. Content Control

<asp:Content ID="Content2" runat="server"
    contentplaceholderid="MyDocumentsContent">
    <asp:FileUpload ID="FileUpload1" runat="server" /><br />
    <asp:Button ID="BtnUpload" runat="server" Text="Upload"
        onclick="BtnUpload_Click" />
</asp:Content>

Below the button markup, ...

Get Microsoft® Visual Web Developer™ 2008 Express Edition Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.