Groups | Blog | Home
all groups > asp.net > june 2004 >

asp.net : Dataset not persisted on PostBack



VB Programmer
6/4/2004 10:53:36 PM
I have a dataset which I fill in the Page_Load (only 'If Not
Page.IsPostBack'). When I debug the load:
dsmyds1.Tables(0).Rows.Count = 207

When I click on a button and it posts back the dataset and I debug:
dsmyds1.Tables(0).Rows.Count = 0

Any ideas why? The dataset is on the designer.

Thanks.



VB Programmer
6/4/2004 11:14:11 PM
I used a session variable and this worked. Thanks.
[quoted text, click to view]

Jim Hevey
6/6/2004 8:36:03 AM
AddThis Social Bookmark Button