Look at a Monkey
This sample illustrates the creation of a very simple view. It was built for the Create a View tutorial in the Getting Started section.
This sample is just about showing a plain old view. No form post to be done here. There is also no server-side rendering to show you, so if you want to see what the Html looks like, view source in your browser!
Look at me! I hate you. Fear the war monkey! (Got the pic here)
To do this in code is actually rather trivial. The url goes to "/Zoo/LookAtTheMonkey" which maps to the ZooController, which has the following action:
public ActionResult LookAtTheMonkey()
{
return View();
}
That, of course, returns a view by the same name, "LookAtTheMonkey". Other than the content controls to make the master page work, this form contains no code or special UI magic.
