Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HandleError]
- public class HomeController : Controller
- {
- public ActionResult Index()
- {
- ViewData["Title"] = "Home Page";
- ViewData["Message"] = "Welcome to ASP.NET MVC!";
- return View();
- }
- public ActionResult About()
- {
- ViewData["Title"] = "About Page";
- return View();
- }
- public ActionResult AnotherPage()
- {
- ViewData["Title"] = "About my other page";
- return View();
- }
- }
Add Comment
Please, Sign In to add comment