Last post Jul 15, 2013 12:37 PM by MichaelOShea
Jul 15, 2013 06:46 AM|MichaelOShea|LINK
I've done a lot of searching in DD and have found lots of partial answers to my question but I decided to ask my specific question in order to save time in a lot of trial-and-error attempts.
I am also fully aware of how nested gridviews work in regular ASP.Net pages but I am not satisfied in how that works because the workflow is not user-friendly (in my opinion).
The workflow I'm looking for is that of a wizard : first page is for entering somet values in some fields and a second and third page is for entering some rows in grids visible on those pages.
CRITICAL POINT : I want to write the master record and the detail records to the DB when the Finish button is clicked on the wizard.
Is this post by Stephen Naughton what I need ? http://forums.asp.net/p/1301257/2542759.aspx
Thanks in advance !
Jul 15, 2013 07:18 AM|sjnaughton|LINK
Hi Michael, my sample which had moved on since that post does not support writing out the master and records at the finish button as it requires the Master record to be inserted first, so I would role my own if I were you :(
Jul 15, 2013 07:48 AM|MichaelOShea|LINK
Wow, that was fast :)
OK, thanks for the information. I have already rolled my own but I find it pretty clunky (I have to track deletes, updates and insertions in order to correctly do the DB writes on the Finish event).
It all feels rather weird: I keep on thinking that my use-case is nothing exotic and is covered and that I just need to figure out what clever bit of technology can do it for me.
There are DD, code generators, objectdatasources etc and I just can't figure what the right mix of technologies could be. By the way, the reason I was looking into objectdatasource objects is that they are apparently capable of caching data, which sounded
really good for what I was trying to do.
Would you maybe have an idea of what I should try next ?
Jul 15, 2013 09:04 AM|sjnaughton|LINK
Sorry that's not something I've ever tried, I tend to for my users down the route of saveing the master first.
Jul 15, 2013 12:37 PM|MichaelOShea|LINK
OK, cheers !