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
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"...
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.