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
Can't obtain cell values from Selected Row of GridView programmatically
File Uploads with jQuery Form and jQuery Validation
Why won't Exchange Transport service start in Exchange 2007 on our SBS 2008 server ?
urgent: how to change the nic speed from 100 half to 1000full in Solaris10
VMware Workstation 7.1 Won't Install
sql server
Include page headers when printing HTML pages with different headers on some of each page
Does OpenOffice allow Windows 7 preview pane to preview .doc and .xls files?
Microsoft.SqlServer.Dts.Pi
peline in XML
PHP Quiz