variable value becoming null

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jay

    variable value becoming null

    Hi,
    I am working on a web service project. To start with i get the data frm
    the web service and populate all the objects with the values received.
    In the second step i display the data received on the browser.
    In the third phase when i try to use the objects to post data to the
    web service i notice that the objects dont have any value in them. why
    is this happening.??
    thanks

  • GhostInAK

    #2
    Re: variable value becoming null

    Hello Jay,

    This would be because your daemon escaped from the summoning pool.

    -Boo
    Hi,
    I am working on a web service project. To start with i get the data
    frm
    the web service and populate all the objects with the values received.
    In the second step i display the data received on the browser.
    In the third phase when i try to use the objects to post data to the
    web service i notice that the objects dont have any value in them. why
    is this happening.??
    thanks

    Comment

    • Kerry Moorman

      #3
      RE: variable value becoming null

      Jay,

      How are you persisting the objects? Session variables? Database? Back and
      forth with the page via hidden fields?

      Kerry Moorman


      "Jay" wrote:
      Hi,
      I am working on a web service project. To start with i get the data frm
      the web service and populate all the objects with the values received.
      In the second step i display the data received on the browser.
      In the third phase when i try to use the objects to post data to the
      web service i notice that the objects dont have any value in them. why
      is this happening.??
      thanks
      >
      >

      Comment

      • Jay

        #4
        Re: variable value becoming null

        I did a bit more research and the solution i came up with is that the
        values are lost once the post back is done. Now I am trying to
        implement ispostback so that i can get the original values for my
        objects. Any clue on how that has to be done

        thanks
        Jay
        Kerry Moorman wrote:
        Jay,
        >
        How are you persisting the objects? Session variables? Database? Back and
        forth with the page via hidden fields?
        >
        Kerry Moorman
        >
        >
        "Jay" wrote:
        >
        Hi,
        I am working on a web service project. To start with i get the data frm
        the web service and populate all the objects with the values received.
        In the second step i display the data received on the browser.
        In the third phase when i try to use the objects to post data to the
        web service i notice that the objects dont have any value in them. why
        is this happening.??
        thanks

        Comment

        Working...