| Next Tip?
Home » Asp.Net, Microsoft .Net

Can we maintain state in webservices?

15 August 2009 627 views No Comment
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4.00 out of 5)
Loading ... Loading ...

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

Leave your response!

You must be logged in to post a comment.