updating dataset from aspx not updating?

R

Rich

Hello,

I'm trying to update a dataset from an aspx where the
source data lives in a table in an Access mdb. Here is
what I have:

sub pageLoad(...)
dataset1.Clear()
dataAdapter1.Fill(dataset1, "tbl1")
end sub

sub btn(...)
Dim dr As Datarow
dr = dataset1.Tables("tbl1").Rows(6)
dr(0) = txt0.text
dr(1) = txt1.text
dr(2) = txt2.text
dataset1.Tables("tbl1").Rows(6).Item(0) = dr(0)
dataset1.Tables("tbl1").Rows(6).Item(1) = dr(1)
dataset1.Tables("tbl1").Rows(6).Item(2) = dr(2)
dataAdapter.Update(dataset1, "tbl1")

I think I need some kind of EndEdit statement, don't I?
but I don't know what it is. Any help appreciated.

Thanks,
Rich
 
R

Rich

I stand corrected. My dataset is updating. I hardcoded
the values. What is not happening is that I am not
retrieving the values from the textboxes on the aspx. Any
suggestions appreciated why I might not be retrieving
edited values from the textboxes on the aspx.

Thanks

P.S. I got rid of dataset1.Tables("tbl1").Rows
(6).Item=...
 
G

Guest

Are you building the textboxes dynamically

----- Rich wrote: ----

I stand corrected. My dataset is updating. I hardcoded
the values. What is not happening is that I am not
retrieving the values from the textboxes on the aspx. Any
suggestions appreciated why I might not be retrieving
edited values from the textboxes on the aspx

Thank

P.S. I got rid of dataset1.Tables("tbl1").Row
(6).Item=..
 

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

Top