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
Create folder / Start Menu Programs Shortcut / Set permissions
ASP.NET unable to cast object of type
accessing VPN while Internet Tethering on iPhone
manage multiple sites from one admin panel drupal/joomla
xp sp2 clients wont log or ping server 2003
I have a coolmax eSATA drive enclosure with a seagate SATA drive
Ubuntu - Convert Desktop Hard Drive to Laptop? Just ext4 format and copy all files?
reCAPTCHA PHP not failing when nothing is entered; works fine when something is entered
Excel/csv, move rows to another sheet based on changing value in column
Need a "quiz" application that saves to a database