Microsoft
Software
Hardware
Network
Question : Having a webservice use a Session variable that is set in the project before the webservice is called.
I have the following tag in the html of a aspx page:
<a id="YouAre1" onclick="YouAre()">You Are</a><br />
The onclick function calls a webservice. The code for the function is:
function YouAre()
{ YouAreService.YouAre("0464
16", YouAreCallBack);}
YouAreCallBack(result)
{alert(result);}
The webservice is in in the same project as the aspx page that calls it. If I just have the webservice return a line of text it works fine. What I want to do is have the webservice use a Session variable that is set in the project before the webservice is called. Is there any way to do this.
Answer : Having a webservice use a Session variable that is set in the project before the webservice is called.
You need to access the session variable inside your webservice?
If so, you can use System.Web.HttpContext.Cur
rent.Sessi
on
Random Solutions
After some time, we occasionally get a " Z: is not accessible. Access is denied." on network drives
DP 6.0 Win2K cell mgr - backup to iSCSI lun using file device
Issues change workstation IP
google search API C# jSON question
Run same stored procedure iterating thru parameters
java servlet to call class method
Problems with accessing the Server "H drives" for users accounts
Replacing Design lost all e-mails in inbox
How do I convert a numeric entry to a text value (numbers to words)
Website script to track each user's individual experience