Web Service method name is not valid

后端 未结 8 2889
余生分开走
余生分开走 2021-02-20 04:39

I get the following error \"Web Service method name is not valid\" when i try to call webmethod from javascript

System.InvalidOperationException: SaveBO

8条回答
  •  半阙折子戏
    2021-02-20 05:11

    It was a silly mistake.

    remove Static keyword from method declaration.

    [WebMethod]
    public string SaveBOAT(string Pid)
    {        
         SessionManager.MemberID = Pid;
         return "";
    }
    

提交回复
热议问题