Transaction handling...newbie

  • Thread starter Thread starter Colin Basterfield
  • Start date Start date
C

Colin Basterfield

Hi,

I have a web app that follows the levels below

1. Login

2. Selection - Site, Year Week ending

3. Summary - Day/Dates of selected week

4. Breakdown - Entry/Edit of counts and totals for day/date selected

Level 4 (Breakdown) uses OnEdit OnCancel and OnUpdate inside the grid using
Template columns within a Datagrid, where the OnUpdate actually posts the
value back to the database thro' a web service, and then into the DB layer
DLL, where the DB post actually happens.

It seems to work, as to me it handles any back button push by the User as
the values that are shown are the values the database collected on load up,
or are values that the User has 'Saved'.

However I can't help thinking that I have copped out by not allowing the
User any transactional processing, as for all I know they may want to just
bail out of the whole thing without saving any changes, so my question is
(finally!), how can I handle this, are there some standard ways to do this
that I have yet to discvoer, and if so would someone mind pointing me in the
right direction

Many thanks
Colin B
 
Use Javascript on the ItemCreated event of your grid..that way you you can
show a prompt like "Ok/Cancel" etc..
 
HI,

thanks, but I think you missed my point, I have the code that initially
shows Edit and once clicked on shows Save and Cancel, and they work fine.
What I was after was some way of wrapping the whole time in the Summary page
and beyond (i.e. the breakdown page when a day is clicked on) in a single
transaction so that the User could Post or Cancel the whole thing from the
Summary page, and if the former a Commit would take place and if the latter
a rollback.

That's what I was getting at.
Many thanks for your input however, it helps me to think out what I am
asking better...
Cheers
Colin
 
Back
Top