Skip Ribbon Commands
Skip to main content

Using HTML 5 and ASP.NET MVC

This wiki is devoted to information on developing applications that use HTML 5 technologies, including ASP.NET MVC.
HTML 5 is an industry standard web page language.
ASP.NET MVC is a technology supported by Microsoft web servers that is designed to make client-server interactions using HTML 5 easier to code, more flexible and extensible and more robust.   MVC uses a controller-as-mediator style Model-View-Controller architecture to  transparently connect Javascript/HTML 5 code running in a client browser to C# code running on the server.    MVC uses REST (REprentational State Transfer) protocols to translate function calls into HTTP GET and POST requests to virtual URLs.
Razor is "view engine" for ASP.NET that is used to autogenerate the Javascript code to make the REST calls to the MVC server side.    ASP.NET supports multipe view engine types.  
"There is often a confusion about where Razor sits in this set of technoligies. Essentially Razor is the parsing framework that does the work to take your text template and convert it into a compileable class. In terms of MVC and WebPages, they both utilise this parsing engine to convert text templates (view/page files) into executable classes (views/pages). Often we are asked questions such as "Where is @Html, @Url", etc. These are not features provided by Razor itself, but implementation details of the MVC and WebPages frameworks."  (ref)
WebMatrix is a free web development tool that can be used for ASP.NET development.   VisualStudio 2012 effectively includes WebMatrix.    The folder structure setup in VS 2012 may be different than WebMatrix however, so bear that in mind when reading articles aimed at WebMatrix. 

Partial Views -- ASP.NET MVC embodiment of Windows Forms custom components


Action Results -- the return type of any any call to the ASP.NET MVC controller.   Includes discussion on ViewBag/ViewData


Calling to the MVC Controller  -- ways to call from the browser back to controller methods






Note that a Razor-encoded web page (cshtml) does NOT necessarily use ASP.NET MVC -- Bear this in mind when reading articles on Razor.  Do not mix up MVC and non-MVC code in the same system.



NuGet  -- package managment

"NuGet is a Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects that use the .NET Framework. Learn how to install it, and how to work with packages."


Getting Started with HTML5:

The following is not necessary for VS 2012:
These are some of the things I've had to deal with so far:
  1. Have to install the Visual Studio 2010 SP1
  2. Also have to install the Web Update for SP1
-Jesus  (Comp410 F11)





Welcome to your wiki library!
You can get started and add content to this page by clicking Edit at the top of this page, or you can learn more about wiki libraries by clicking How To Use This Library.
What is a wiki library?
Wikiwiki means quick in Hawaiian. A wiki library is a document library in which users can easily edit any page. The library grows organically by linking existing pages together or by creating links to new pages. If a user finds a link to an uncreated page, he or she can follow the link and create the page.
In business environments, a wiki library provides a low-maintenance way to record knowledge. Information that is usually traded in e-mail messages, gleaned from hallway conversations, or written on paper can instead be recorded in a wiki library, in context with similar knowledge.
Other example uses of wiki libraries include brainstorming ideas, collaborating on designs, creating an instruction guide, gathering data from the field, tracking call center knowledge, and building an encyclopedia of knowledge.