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 7060749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:23:24+00:00 2026-05-28T04:23:24+00:00

I have a web application built in asp.net mvc using forms authentication. I am

  • 0

I have a web application built in asp.net mvc using forms authentication.

I am wondering how to properly implement a system in which new users must enter an invitation code in order to create an account on my site.

Basically, I want to use the out of the box Account Controller and models as much as possible for account creation.

Do I just need to block access to the Registration page if a user does not enter a valid invite code?

Any examples on how to accomplish this?

UPDATE:

It seems that the easiest solution would be to just make confirmation code a required field on the Registration page. However, I feel that this is not the most elegant way to solve this problem.

Another idea: Have the Registation page GET method take InviteCode as a parameter(passed in the query string) and redirect to another page if the code is null or invalid. Does anyone see any problems with this approach?

  • 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-28T04:23:24+00:00Added an answer on May 28, 2026 at 4:23 am

    As an end user, I would want to enter in the code before I ever get to my account details. If I enter them in only to find out I have an invalid code, I’d be pretty angry.

    So your options would likely be:

    1. They enter up front (as mentioned on the reg page)
    2. Enter them on the same registration page, hiding applicable form elements.
      2a. Reg code is checked by ajax, and account details appear.

    Reg code is posted along with account details for additional verification.

    Remote validation can be used, json calls, etc to check the field.

    Remote validation: http://completedevelopment.blogspot.com/2011/08/remote-ajax-validation-in-mvc3.html

    or a json call to validate, or front page, or..
    the options here are really up to you. The validation of the token should be easy enough and doesn’t have to be related at all to your account code.

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

Sidebar

Related Questions

I have a web application built on ASP.NET MVC framework which requires a service
I have built an ASP.NET mvc web application and it seems that some of
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
I have built a small web application in asp.net c# in VS 2010 using
In an asp.net web application, I have a modal popup built with a Telerik
All, I have a PHP Web application built using Zend Framework and MVC with
I have a web that was build using ASP.NET MVC 1.0. It uses Structuremap
I have an ASP.NET MVC 3 (.NET 4) web application. This app fetches data
I have an existing complex website built using ASP.NET MVC, including a database backend,
We have a web application written in ASP.NET for .NET 3.5, using standard web

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.