Results 1 to 2 of 2

Thread: IsObject

  1. #1
    Join Date
    Dec 1969

    Default IsObject

    I'm having trouble trying to keep the state of my dataset in a user control (I'm fairly new to .Net). I want to test if my dataset still exists after a postback. Is there some sort of IsObject(objectname) function intrisic to Or is there another way? Any help would be appreciated.

  2. #2
    Join Date
    Dec 1969

    Default RE: IsObject

    Try "= nothing" (or it may be "is nothing")<BR><BR>Example<BR><BR>if myDataSet is nothing then<BR>&#039;Reload<BR>end if<BR><BR>The quick answer is though that your dataSet is gone once your code exits what ever function it was created in.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts