62,074
社区成员
发帖
与我相关
我的任务
分享
[WebMethod(Description = "test", EnableSession = true)]
public void test(string userID)
{
Session["user"] = "123";
}
[WebMethod(Description = "test2", EnableSession = true)]
public void test(string userID)
{
user = Session["user"]
}
通过Service.asmx访问接口时好使的,但是通过页面调用接口,session就为空,
非专业c#,多有不懂,请大佬赐教