NET label controls, three HTML input (text) controls,
and an HTML input (button) control to the web page. Label the three text fields
???Make:???, ???Model:???, and ???Year:???, and name them txtMake, txtModel, and txtYear. Set the text
of the button to ???Get Value???. The web page should look like Figure 3-13.
Figure 3-13. Designing the web service client application
CHAPTER 3 ?– THE MICROSOFT AJAX LIBRARY: MAKING CLIENT-SIDE JAVASCRIPT EASIER 51
?– Note By using the HTML Input button, the page does not have to be posted back when the button is
clicked.
Next, go to the source view for this form, find the asp:ScriptManager tag, and add a
tag inside of it. Within the tag, add an tag
with a Path attribute that points to the web service. This will cause the AJAX Library to
generate a web service proxy at runtime. The HTML should look like this:
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106