TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sean
NA
3
0
Using the WebMethod property EnableSession to save data
Nov 1 2009 11:16 PM
Here is a small, simplified sample of my code: [System.Web.Services.WebMethod(EnableSession=true)] public void StartGame() { numTurns = 8; } [System.Web.Services.WebMethod(EnableSession=true)] public int getTurns() { return numTurns; } When I debug this web service (VS 2008) I invoke StartGame first, then I close out of that tab and invoke getTurns. It should print out 8, but it prints out 0. What could the problem be?
Reply
Answers (
1
)
Want to Use images in web site
Discount Hosting