9.7. Creating a Page to Use the Web Service

Follow these steps to create a page that uses the GetRGB() function from the preceding Web service.

  1. Add an AJAX Web form (yes, there's an AJAX version!) named checkcolor.aspx to your project (FileNew FileAJAX Web FormAdd).

  2. In Design view, from the AJAX Extensions category of the Toolbox, drop an UpdatePanel control onto the page.

    Make sure that the ScriptManager control remains at the top of the page, or you get a runtime error.

  3. Place your cursor inside the UpdatePanel and then from the Toolbox, double-click an ASP.NET TextBox, a Button, and a Label control.

    It's hard to place controls inside other controls. The double-click technique ensures that the controls land inside the UpdatePanel.

  4. In Design view, add an UpdateProgress control below the UpdatePanel control.

  5. Place your cursor inside the UpdateProgress control and, from the Toolbox, double-click a Label control.

  6. Change the preceding Label control's Text property to An update is in progress... ...

Get ASP.NET 3.5 For Dummies® 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.