ASP.NET MVC: Submit renders the same page?

Must be a routing issue. Can you paste your routes, you could also try this route debugger.

OK I tried the debugger, /Users/Login and /Users/DoLogin both route to appropriate controller/action... actually both /Users/Login and /Users/DoLogin works as expected when typed into URL in browser. It's the submit button that seems to fail to work... – queen3 Jul 14 '09 at 11:53.

OK, so thanks to jamesshannon I found that this was because my site. Master page suddenly wrapped everything into an ASP. NET form - probably because I edited it using VS2008 editor.

Not sure if such behavior is very nice but... now I'm aware.

I'm trying to add simple login page to ASP.NET MVC app. I actually use Sharp Arch template project. However, when I click Submit, request is made once again to Login() - I can see it when I set breakpoint there, it doesn't try to go to UsersController.DoLogin() even though in resulting HTML page form has action /Users/DoLogin.

When I manually enter /Users/DoLogin in browser, it gets called and my breakpoint gets fired. I'm banging my head for few hours already... I don't see whats wrong here.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions