T
Tom
hello
question 1:
I have the following code below but the funny thing is that Session only
works when I invoke it from the server side.. When I call this session from
client (winform app) I don't get an inrementation instead only 0... I don't
know why..
question 2:
for somereason I don't see any exceptions in this web service when there's
an error ie. Session["value"] +1 where Session["value"] is null there should
be an exception thrown and give me a view like asp.net but instead I get a
blank page which it says it can not find the page. anyone know why ?
[WebMethod(EnableSession=true, MessageName="AddSession")]
public int helloworld()
{
//int foo = (int)Session["value"];
if (Session["value"] == null)
{
Session["value"] = 0;
}
else
{
Session["value"] = (int)Session["value"] + 1;
}
return (int)Session["value"];
}
Thankyou
Tom
question 1:
I have the following code below but the funny thing is that Session only
works when I invoke it from the server side.. When I call this session from
client (winform app) I don't get an inrementation instead only 0... I don't
know why..
question 2:
for somereason I don't see any exceptions in this web service when there's
an error ie. Session["value"] +1 where Session["value"] is null there should
be an exception thrown and give me a view like asp.net but instead I get a
blank page which it says it can not find the page. anyone know why ?
[WebMethod(EnableSession=true, MessageName="AddSession")]
public int helloworld()
{
//int foo = (int)Session["value"];
if (Session["value"] == null)
{
Session["value"] = 0;
}
else
{
Session["value"] = (int)Session["value"] + 1;
}
return (int)Session["value"];
}
Thankyou
Tom