Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2007, 06:38 AM
Authorized User
 
Join Date: Mar 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Atomic WizardSteps

Hi all,

Does anyone know if it is possible to make the steps in a wizard atomic?

I have a two step wizard, the first step is a CreateUserWizard and the second is a factored profile. When coding I created an error in the profile step. I checked the database and found the new user was created but obviously without any profile information as that is the step where the error occurred. So does anyone have any ideas of how I can make these steps atomic? Any help very much appreciated.

Thanks

 
Old August 26th, 2007, 01:28 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You need to work with transactions with the database. You can either pass in everything necessary to a single transactional SPROC in a single call (transaction at the DB level), or you can work with the classes in the System.Transactions namespace to make several calls within the context of a single transaction at the code level.

For more from MSDN:
Implement Implicit Transactions using Transaction Scope
Writing A Transactional Application

-Peter
 
Old August 26th, 2007, 02:38 PM
Authorized User
 
Join Date: Mar 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the response planoie. Are you suggesting that I should alter the built-in sprocs for membership to include transactional features? If so how do I prevent data being submitted from the first step of the wizard, which is an automated process? I'm getting the feeling I may have to create an entirely customised system for creating new members and profiles, which I'm trying to avoid.





Similar Threads
Thread Thread Starter Forum Replies Last Post
atomic value problem bluetorch XSLT 3 October 28th, 2005 01:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.