Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 October 7th, 2009, 10:43 AM
Authorized User
 
Join Date: Oct 2009
Posts: 31
Thanks: 11
Thanked 0 Times in 0 Posts
Default Conformation of email

I am a beginner in ASP world...

I recently read your Beginners Book of ASP 3.5...
After following the instructions of the book, now i want to create a website...

I want to know how to write code (C# ASP) so that "A mail to Activate Account" is sent to the user so as to confirm the email account (which is specified by the user) belongs to him.

Thanking you a lot for the fantastic book "Beginning ASP.NET 3.5"...
 
Old October 7th, 2009, 02:24 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I don't have any ready-made code, here's the general idea:

1. Set DisableCreatedUser on the CreateUserWizard to false
2. In the CreatedUser event send out an e-mail. The mail should contain a link to a page like ActivateAccount.aspx and take the user name as a parameter
3. In ActivateAccount.aspx get the user's name from the query string and use Membership.GetUser to retrieve the user.
4. Activate the MembershipUser returned from GetUser and save the changes.

Hope this gives you a general idea.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
varunbwj (October 8th, 2009)
 
Old October 8th, 2009, 03:30 AM
Authorized User
 
Join Date: Oct 2009
Posts: 31
Thanks: 11
Thanked 0 Times in 0 Posts
Default Conformation of Email Account

Thank u Imar...
I am trying to do what you said...

Thank you...
 
Old October 8th, 2009, 07:35 AM
Authorized User
 
Join Date: Oct 2009
Posts: 31
Thanks: 11
Thanked 0 Times in 0 Posts
Smile Conformation of Email Account

Thanks a lot Imar....

I followed your instructions to code what i wanted...
Now my website has this feature of "Activating Account only after Email is confirmed"...

Thanks a lot... You are a great teacher...
Thanks...





Similar Threads
Thread Thread Starter Forum Replies Last Post
C# and Email iceman90289 C# 2005 8 June 25th, 2008 11:44 AM
Email Registering HelpWanted ASP.NET 1.0 and 1.1 Basics 1 September 20th, 2006 04:21 PM
email keyvanjan Classic ASP Basics 2 March 20th, 2006 12:05 AM
Conformation Screen. rupen Classic ASP Basics 3 July 12th, 2005 11:31 PM





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