Form Variables

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

In ASP.NET 2.0 I declared

Dim dst_subscr As New Data.DataSet

and in page_load I filled the databaset with data from 3 tables.

When I tried to use the database from another procedure (button_click
of same form) my dataset was empty, no tables inside. Why ? Shouldn't
keep the 3 tables since it's a form variable ?

Thanks in advance.
 
Are the tables being sucessfully added to the dataset at all, can you access
them anywhere?
 
A regular form variable doesn't live between postbacks. You have to either
re-populate the dataset on every postback or store it in a persistant
location, such as a session variable.

Eliyahu
 
Thanks a lot, up to now I got used to programming in VB6, and it's
difficult to work with ASP.NET.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top