IsPostBack ??

C

cmrchs

Hi,

how can I initialize data kept in the Session-object only the first time a WS is invoked and not everytime the WS is invoked.

I tried :

Sub New()
if IsPostBack = false then
Session("counter") = 0
end if
End Sub

--> but IsPostBack is not available in a WebService (it is in WebPages)

Thnx

Chris

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
J

Jan Tielens

Check out this article:
http://msdn.microsoft.com/library/en-us/dnservice/html/service08062002.asp
Using ASP.NET Session State in a Web Service

--
Greetz
Jan
________________
Read my weblog: http://weblogs.asp.net/jan


Chris C said:
Hi,

how can I initialize data kept in the Session-object only the first time a
WS is invoked and not everytime the WS is invoked.
I tried :

Sub New()
if IsPostBack = false then
Session("counter") = 0
end if
End Sub

--> but IsPostBack is not available in a WebService (it is in WebPages)

Thnx

Chris

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top