调用Webservice后,会话变量设置为Nothing [英] Session variables set to Nothing after call to Webservice

查看:79
本文介绍了调用Webservice后,会话变量设置为Nothing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.aspx页面,通过JavaScript调用Web服务(间接通过AJAX DynamicPopulateExtender)。

I have a .aspx page that calls a Webservice through JavaScript (indirectly through AJAX DynamicPopulateExtender).

某段时间之间调用已启动并完成,调用.aspx中的所有会话变量都已设置为Nothing。要明确的是,Web服务不使用或不需要使用任何Session变量,并且调用.aspx会遇到会话变量丢失。

Sometime between when the call is initiated and completes, ALL Session variables in the calling .aspx have been set to Nothing.  To be clear, the Webservice does not use or need to use any Session variables, and it is the calling .aspx that suffers from lost Session variables.

我已将此行包含在Webservice中,但问题仍然存在。

I have included this line in the Webservice, but the problem persists.

< WebMethod(EnableSession:= True )>

<WebMethod(EnableSession:=True)>

均为True也错误解决了这个问题。

到目前为止我看到的所有主题都试图让Web服务到使用Session变量并返回调用.aspx - 这个问题不同。

All the topics I have seen so far try to get the Webservice to USE Session variables and return to calling .aspx - this issue is different.

我已经尝试了很多天才能找到答案 - 帮助非常感谢。

I have been trying for many days to find an answer - help would be most appreciated.

谢谢。

推荐答案

你有没有找到这个问题的答案?我正在体验山姆的事情,现在已经找了几天......
Did you ever find an answer to this problem? I'm experiencing the sam thing and have been searching for days now...


这篇关于调用Webservice后,会话变量设置为Nothing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆