M
MattB
I have a web form with quite a bit of code in the codebehind. I'm declaring
a dataset as Protected so I can access it from different events within the
form without having to regenerate it. I'm having a problem and realized that
this protected dataset seems to loose it's tables when I go from the
page_load event to a button click event.
I don't think I'm actually doing anything to the dataset that I can see, I
just stepped through it and if I watch the table count, it goes from 2 to 0
when it hits the click event. Am I wrong to think a dataset should persist
from event to event if declared as protected? Anyone got an explanation or
better yet a good solution?
Should I serialize/deserialize it to a protected string variable instead?
Thanks!
a dataset as Protected so I can access it from different events within the
form without having to regenerate it. I'm having a problem and realized that
this protected dataset seems to loose it's tables when I go from the
page_load event to a button click event.
I don't think I'm actually doing anything to the dataset that I can see, I
just stepped through it and if I watch the table count, it goes from 2 to 0
when it hits the click event. Am I wrong to think a dataset should persist
from event to event if declared as protected? Anyone got an explanation or
better yet a good solution?
Should I serialize/deserialize it to a protected string variable instead?
Thanks!