How to add a new page in MVC

Home > Search > How-to

In this example, let's add a new page named FAQs under Home, so that we have a page such as


  1. In Solution Explorer, expand Controllers and select the HomeController.cs
  2. Add the following markup to the HomeController.cs file:
public ActionResult FAQs(){
     ViewBag.Message = "FAQs";
     return View();


  1. In Solution Explorer, expand View.
  2. Right-click on the Home folder and select Add > View
  3. Name the View FAQs and select Add

You can now publish the site, navigate to, and your FAQs page should be displayed.



Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter in the box below so that we can be sure you are a human.