Can i call custom created function from sharepoint client api?
I need to call function on server:
public class ClientCallsReci开发者_StackOverflowever
{
public void CustomFunction()
{
//A LOT OF CODE ON SERVER
}
}
So is it possible to do on client something like:
Context.Completed+=CompletedHandler;
Context.Invoke("CustomFunction");
You can't directly call a method on the server from the client. You'd need to create a Web service and expose the method through it.
精彩评论