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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:28:36+00:00 2026-06-10T12:28:36+00:00

I am working on a website,i have a view in my website for registration,

  • 0

I am working on a website,i have a view in my website for registration, and on pressing the signup button i am hitting an ActionMethod,every thing is working fine the problem is when after successful registration if user presses Enter on URL it is showing The resource cannot be found, how can i handle this?
Below is my controller code ==>

 public ActionResult Join(SignUpModel model)
        {        
                int create = Repository1.Create(UserEntity);
                if (create > 0)//if <= 0 means username already exists
                {
                    int savesetup = Repository2.SaveInfo(model);                                        
                    TempData["SucessMsg"] = "User registered Successfully";
                    return View("Index");
                }
                if (create < 0)
                {
                    TempData["ErrorMessage"] = "Username already exists";
                    return View("Index", model);
                }         

            return RedirectToAction("Index", "SignUp");
        }

and the View of Signup is Index View

public ActionResult Index()
        {         
            return View();
        }

Since i dont have View named Join,instead i am redirecting it to index page but when User is on Signup/Join URL and presses enter it shows The resource cannot be found

  • 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-06-10T12:28:38+00:00Added an answer on June 10, 2026 at 12:28 pm

    Is ActionResult Join(SignUpModel model) marked with a [HttpPost]-attribute? If so, then it will only be invoked if the user makes a POST-request (and entering the url themselves will do a GET-request. If this is the case, simply add another action method called Join() without the [HttpPost]-attribute and use that to redirect them to the correct page (or display any information you want of course).

    Edit

    I was a little hasty when reading your question and missed that you already redirected the user away from ActionResult Join(SignUpModel model), sorry for that.

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

Sidebar

Related Questions

I have a view all category on the website I am working on (http://www.thetradinghouse.co.nz/view-all).
I was working on my website when I cam across this problem, I have
I have a working website website project in visual studio. I can view all
I'm working on a website with the razor view engine and C# and have
I have working website in PHP with a MySQL backend which has several tables
I have a working website, where I use this expression everywhere. price.ToString(C) It currently
I'm working on a website and have been using absolute positioning, since the viewport
I am working on a website where I have a main div . I
I am currently working on a website that will have a high volume of
Here's what I am working on. At my website I have multiple processes with

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.