|
 |
aspx_beginners thread: Dataset reset when page posts back
Message #1 by bhanup@m... on Tue, 2 Jul 2002 12:39:14
|
|
Hi,
I am trying create a temporary storage in the form of a Dataset through
which I will collect all the user input and do a batch upload to the
database. The problem is with the database. The first time, the row gets
created and inserted into the database. But, when it comes back the second
time (when the page posts back), the dataset rows count becomes 0. What
could be the reason ?? I have declared the Dataset variable as Public,
just in case that is the reason. Please help me
Thank you
Bhanu
Message #2 by "jeby" <jeby@c...> on Tue, 2 Jul 2002 17:17:36 +0530
|
|
Are you trying to push the data only once? If so, you can put all your
code with in
if not page.ispostback then
'your code
end if
This would solve your problem.
Regards,
Jeby
-----Original Message-----
From: bhanup@m... [mailto:bhanup@m...]
Sent: Tuesday, July 02, 2002 12:39 PM
To: aspx_beginners
Subject: [aspx_beginners] Dataset reset when page posts back
Hi,
I am trying create a temporary storage in the form of a Dataset through
which I will collect all the user input and do a batch upload to the
database. The problem is with the database. The first time, the row gets
created and inserted into the database. But, when it comes back the
second
time (when the page posts back), the dataset rows count becomes 0. What
could be the reason ?? I have declared the Dataset variable as Public,
just in case that is the reason. Please help me
Thank you
Bhanu
|
|
 |