开发者

Sharepoint client api. Call custom function

开发者 https://www.devze.com 2023-03-08 11:29 出处:网络
Can i call custom created function from sharepoint client api? I need to call function on server: public class ClientCallsReci开发者_StackOverflowever

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消