Transaction handling...newbie

  • Thread starter Colin Basterfield
  • 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
 
K

Kunal

Use Javascript on the ItemCreated event of your grid..that way you you can
show a prompt like "Ok/Cancel" etc..
 
C

Colin Basterfield

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
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top