SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 148 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

You can use the ScriptManager control to reference
this using the child tag. This tag should contain one or more
tags that specify the service you want to reference.
This tag has two attributes:
??? Path: This specifies the path to the service. You briefly saw in Chapter 2 that
JavaScript proxies to web services on ASP.NET AJAX web sites can be automatically
generated by postfixing /js at the end of its URI. So, for example, the web service
at wstest.asmx would return a JavaScript proxy that could
be used to call it at wstest.asmx/js. When using the tag to specify the service, most
of the work would be done automatically for you on the client side with the help
of the ScriptManager control. Here??™s an example:



CHAPTER 5 ?–  INTRODUCING SERVER CONTROLS IN ASP.NET AJAX 88
??? InlineScript: This is a boolean value (true or false) that specifies whether the proxy
generation script is included as an inline script block in the page itself or obtained
by a separate request.


Pages:
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160