Author: Dovdimus Prime | Posted on: 9/22/2008 6:37:05 AM | Views : 311


Hi all


Here's a general question as I think going into the specifics of my problem would be unnecessary.


Using Page Methods centres around a number of JavaScript methods and a codebehind method:
 



The JS method the control calls:

<button onclick="GetInfo();".....

The JS call using PageMethods which the above function makes:


function GetInfo()

{

 PageMethods.GetInfo(OnSucceeded, OnFailed);


}


The actual codebehind method called by the function above:




[WebMethod]

public static string GetInfo()

{

 return "Hello World!";


}

 The JS OnSucceeded (or OnFailed ...

Go to the complete details ...