Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 404453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:18:35+00:00 2026-05-12T17:18:35+00:00

I have just set up a new ASP.NET MVC website and I would like

  • 0

I have just set up a new ASP.NET MVC website and I would like to change it to force the user to authenticate their email address by clicking a validation link in an email. I googled the answer with as many search terms as I could think of, but I guess I never hit the correct one.

I started playing with the membership objects to see what I could come up and I did see you can toggle IsApproved, and so I set the default to false. I registered a new user after that and no email came through (as I had expected), but also it logged me in anyway for the current session. Thats beside the point however.

Is there a built in mechanism for sending out a validation email or is that something I need to implement?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:18:35+00:00Added an answer on May 12, 2026 at 5:18 pm

    There’s nothing built-in to achieve this. You’ll have to implement the email sending and validation process yourself, unfortunately.

    You’re on the right lines, though. Once a user is registered on your site, you’ll have to set their IsApproved property to false, create a random “activation code” and store this (usually in a manually added field on the aspnet_Membership table or as part of the ASP.NET Profile if you’re using Membership Profiles), send off the email with a URL that contains the user’s “activation code”. Once the user receives this email and visits the URL, you grab their “activation code” from the URL, look up the account from the ASP.NET membership system and set their IsApproved property back to true.

    For detailed information on how you can achieve this, take a look at:

    Examining ASP.NET’s Membership, Roles, and Profile – Part 11

    This is Part 11 of a 16 part series on ASP.NET’s Membership, Roles and Profile providers, and not only shows how they are used with the built-in functionality offered, but also shows how to implement some commonly seen functionality that isn’t provided “out-of-the-box” with the ASP.NET systems. (Incidentally, the whole series is well worth reading!)

    Although this article was written well before the advent of ASP.NET MVC, the basic mechanism for implementing a “verify-by-email” system is the same and is easily converted to be more ASP.NET MVC-friendly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to ASP.NET and have just starting to learn ASP.NET MVC 3. I've
I have a simple ASP.NET MVC 3 dummy app (just learning MVC coming from
I have an ASP.NET MVC 3 project that I just created using the project
I've set up DI with Ninject in my ASP.NET MVC application like this Bind<IRepository>().To<XmlDefaultRepository>().WhenInjectedInto(typeof(PageController)).WithConstructorArgument(contentType,
I have a single-page JavaScript application, held within an ASP.NET MVC 3 website. In
I have a new ASP.NET MVC 3 project, and MVC and Razor are all
I just installed ASP.NET MVC 3.0 RC and then when i am creating new
I have a Telerik grid in my asp.net mvc application that looks something like:
We have an ASP .NET MVC application that allows users to provide a set
Have just started playing with ASP.NET MVC and have stumbled over the following situation.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.