Say that we have mypage.html in Views Folder (Assuming an ASP.NET MVC 3 Web Application).
How to redirect to mypage.html page from an Action ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You would have to set this up in your routing.
In your routes configuration:
MapPageRoute is slightly different than the regular MapRoute method you see in MVC. It is used for routing with Web Forms and will work in conjunction with MVC routing. This will map to a specific page. This is in namespace
System.Web.RoutinginSystem.Web.dlland
In your Controller: