I’m migrating an old ASP.NET Web Forms app to ASP.NET MVC 4. I’m not very familiar with ASP.NET MVC, so I apologize if this is a dumb question. In short, my ASP.NET Web Forms app used the following line of code to redirect the user when the logged in:
FormsAuthentication.RedirectFromLoginPage(username, true);
I assumed I could just copy and paste this code over. However, I noticed that it attempt to redirect the user to “default.aspx”. What is the MVC equivalent of this call?
Thank you!
You have complete sample here : http://www.c-sharpcorner.com/UploadFile/cd3310/using-mvc-Asp-Net-tools-create-simple-login-form/
View with controller with specific action