In Chapter 10 page 345 you enter the following code to call the method/function to return then name entered as a string. But this method has only one argument. How can you specifiy "HelloWorldCallback" as a second argument? I understand what it does, but it doesn't follow the syntax rules. How would I know that the HelloWorld method I wrote could handle another argument and how would I know that this argument is another method and not a paramerter that is used in MY HelloWorld function?
If this can't be answered in this forum, can you direct me to a forum that can?
Thanks,
Chuck
Java script in NameService.
vb
Code:
<WebMethod()> _
Public Function HelloWorld(ByVal yourName As String) As String
Return String.Format("Hello {0}", yourName)
End Function
VB code in WebService.aspx
Code:
NameService.HelloWorld(yourName, HelloWorldCallback);