Can we maintain state in webservices?
15 August 2009
627 views
No Comment
There is no direct way provided by webservices to maintain state. But webservices can maintain the state by using asp.net instrinsic objects i.e Session and application.
using System.web.Services;
public class myWebService : Webservices
{
[Webmethod()]
public void maintainState(string value)
{
Session(“Val”) = value;
}
}
Popularity: unranked [?]
Related interview questions
- What is the Global.asax used for?
- What is Form authentication?
- Can we store filtered DataView in ViewState?
- Difference between Clone, Close and Dispose methods of Crystal Report?
- Is it possible to create constructor for an Abstract class?



(1 votes, average: 4.00 out of 5)







Leave your response!
You must be logged in to post a comment.