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.
Add an AJAX Web form (yes, there's an AJAX version!) named checkcolor.aspx to your project (File
New File
AJAX Web Form
Add).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.
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.
In Design view, add an UpdateProgress control below the UpdatePanel control.
Place your cursor inside the UpdateProgress control and, from the Toolbox, double-click a Label control.
Change the preceding Label control's Text property to An update is in progress... ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access