---
How can I access session in a webmethod?
---
重點底下寫法:
EnableSession:=True---
_ Public Function IncrementSessionCounterX() As Integer Dim counter As Integer If Context.Session("Counter") Is Nothing Then counter = 1 Else counter = Context.Session("Counter") + 1 End If Context.Session("Counter") = counter Return counter End Function
沒有留言:
張貼留言