|
-
Apr 22nd, 2003, 10:34 AM
#1
Thread Starter
Lively Member
Adding to Datasets
I have a page that has a dataset is loaded on page load.
The user can add records to the dataset, and will not be updated
to the table the dataset was loaded from.
Right now I have it set up so that every time the page is loaded the dataset is loaded. And the add new record is performed with an insert into.
I want to change this so that I add to the dataset, and only update the table on submit. I can add a row to the dataset, but on the postback the row in the dataset is loss since the update to the table is not performed.
Should I be saving the dataset as a session variable and loading it on postback???
Thanks in advance.
Jimmer
-
Apr 22nd, 2003, 05:52 PM
#2
Addicted Member
I'm not positive is this is exactly what you are wanting, but here is what I would try:
Code:
If Not Page.IsPostBack Then
'code
End If
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|