Results 1 to 5 of 5

Thread: persistent variables?

  1. #1

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609

    persistent variables?

    I have an ASP page written in VB.NET which needs to work with a persistent collection over a couple of requests.

    I have tried using each "control" in a collection, which didnt work, anyways ...

    I created a New Collection object, populated it and gave it so a Session() cookie to keep untill the next request/postback, but it only keps the first object in the collection????

    Does anyone know what I mean or should I write up a basic example showing what I mean?

    Any help is appreciated, Thanks

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    I think you should try explaining again. You mention persistence of variables, but you talk of controls...

  3. #3

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    Sure, I'll see if I can hack up a quick example tonight maybe (probably not enoguh time, I dont get home till late).

    Maybe this will clarify in the mean time...

    I am using a form full of controls, yes, but I am using a session cookie to keep information about these controls between postbacks, and because a single session cookie is keeping information for a fair couple controls it is holding a "collection"

    So, a Session Variable is assigned a Collection containing information about the controls on the page.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    The controls on your page, do they not persist their values between postbacks? That's the main idea behind ASP.NET.

  5. #5
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018
    The Frogs right.
    Have you got viewstate enabled for each .net control ?

    Parksie

Posting Permissions

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



Click Here to Expand Forum to Full Width