Also, I did not mention that my itemupdating sub has been altered to
just display the count of the changed fields. It is returning zero for
each one
lblPageInfo.Text &= "<br>oldvalues=" & e.OldValues.Count
lblPageInfo.Text &= "<br>keys=" & e.Keys.Count
lblPageInfo.Text &= "<br>newvalues=" & e.NewValues.Count
results in
oldvalues=0
keys=0
newvalues=0
deftone - 31 Oct 2007 19:22 GMT
I am answering my question here after someone emailed me about it....
Originally i was trying to use a dataset on the formview. I would set
fv.datasource = ds. I found that if you do that, the form will not
automatically fill the newvalues and oldvalues when running
fv_ItemUpdating.
So the alternate approach is to create a datasource control, in my
case an ObjectDataSource named dbSource. Then use that to set the
fv.DataSourceID = dbSource.ID. Doing this, everything worked the way
you would expect it to. It automatically filled in the new and old
values.
So, in short...
fv.DataSource = dataset, etc ----> you sh.t wont work as you would
expect.
fv.DataSourceID = DataSource.id ----> this will work
deftone - 31 Oct 2007 19:22 GMT
I am answering my question here after someone emailed me about it....
Originally i was trying to use a dataset on the formview. I would set
fv.datasource = ds. I found that if you do that, the form will not
automatically fill the newvalues and oldvalues when running
fv_ItemUpdating.
So the alternate approach is to create a datasource control, in my
case an ObjectDataSource named dbSource. Then use that to set the
fv.DataSourceID = dbSource.ID. Doing this, everything worked the way
you would expect it to. It automatically filled in the new and old
values.
So, in short...
fv.DataSource = dataset, etc ----> your sh.t wont work as you would
expect.
fv.DataSourceID = DataSource.id ----> this will work