IsPostBack ??

Discussion in 'ASP .Net Web Services' started by cmrchs@yahoo.com, May 26, 2004.

  1. Guest

    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...
     
    , May 26, 2004
    #1
    1. Advertising

  2. Jan Tielens Guest

    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" <> schreef in bericht
    news:eEue$...
    > 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...
     
    Jan Tielens, May 26, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nathan Baulch
    Replies:
    1
    Views:
    989
    Nathan Baulch
    Jun 26, 2003
  2. suzy
    Replies:
    11
    Views:
    767
    Rajeev Soni
    Aug 6, 2003
  3. Matthew
    Replies:
    1
    Views:
    1,501
    Matthew
    Nov 12, 2003
  4. Boris Zakharin

    IsPostBack returns false

    Boris Zakharin, Nov 19, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    663
    Boris Zakharin
    Nov 19, 2003
  5. Joey
    Replies:
    2
    Views:
    4,049
Loading...

Share This Page