Hi Chris,
Based on my understanding, your question is:
1) You want to break the user registration process into two steps: User
enters data in the first page, after the "Proceed" button is clicked, the
data gets validated (unique email address and so on) and if correct,
redirects to second page and let user preview the data that will be
submitted to database.
2) You're concerned about database concurrency since the email address must
be unique, it's possible that before one user's data gets submitted to
database, there might be also other requests checking the uniqueness of
email address using the not-modified user table.
3) Using temporary table is not viable since it's not easy to maintain.
Please correct me if I've misunderstood anything.
I also don't recommend the temporary table approach since it makes checking
for email address uniqueness difficult, and when user closes the second
page without submitting, you get "dead" data in the temporary table and
prevent users from using the email address again.
Since the registration process has to be separated into two steps, I'm
afraid you will have to validate data in each step. The data that has been
collected in the first step could be stored in the session state, or use
other two approaches:
1) Use the same page as the two steps, you can use Wizard or MultiView
control to present different view of the data to user in different step.
2) Use cross-page postback to post the data from the first page to second
page.
Let me know if you want more information on related topics.
Hope this helps.
Sincerely,
Walter Wang ((E-Mail Removed), remove 'online.')
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.