View Single Post
  #4 (permalink)  
Old April 16th, 2004, 06:25 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 66,557, Level: 100
Points: 66,557, Level: 100 Points: 66,557, Level: 100 Points: 66,557, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,119
Thanks: 65
Thanked 1,381 Times in 1,361 Posts
Default

Hi there,

I am not sure what kind of object dsPopulateGrid is, but apparently it does not maintain its state during postbacks.
This means that when you post back (e.g.) click the Button, you'll loose the value of that variable.
You probably need to recreate the DataSource / object again after postback. You can do this by calling a custom method from the Page_Load event.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Pop Song For Us Rejects by Silverchair (Track 8 from the album: Freak Show)

Reply With Quote