Server Error in '/' Application. The view 'Contact' or its master was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/Home/Contact.aspx ~/Views/Home/Contact.ascx ~/Views/Shared/Contact.aspx ~/Views/Shared/Contact.ascx ~/Views/Home/Contact.cshtml ~/Views/Home/Contact.vbhtml ~/Views/Shared/Contact.cshtml ~/Views/Shared/Contact.vbhtml
public class HomeController : Controller { public ActionResult Index() { ViewBag.Message = "Welcome to ASP.NET MVC!"; return View(); } public ActionResult About() { return View(); } public ActionResult Contact() { ViewBag.Message = "This is our contact page"; return View(); } Layout.cshtml <quote:ul id="menu" xmlns:quote="#unknown"> @Html.ActionLink("Home", "Index", "Home") @Html.ActionLink("About", "About", "Home") @Html.ActionLink("Contact", "Contact", "Home") >
ContactUs.cshtml
Contact.cshtml
return View("ContactUs");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)