Friday 3 February 2012

CREATING AN ASP.NET MVC 3 APPLICATION

CREATING THE PROJECT

  1. Use administrator privileges launch either Microsoft Visual Studio 2010 or Microsoft Visual Web Developer Express 2010. To launch Visual Studio with administrator privileges, right-click Microsoft Visual Studio 2010 (or Microsoft Visual Web Developer Express 2010) and then click Run as administrator. The Windows Azure compute emulator, discussed later in this guide, requires that Visual Studio be launched with administrator privileges.
    In Visual Studio, on the File menu, click New, and then click Project.
    From Installed Templates, under Visual C#, click Web and then click ASP.NET MVC 3 Web Application. Name the application ToDoListApp and click OK:
In the New ASP.NET MVC 3 Project dialog, select the Internet Application template and the Razor view engine. Click OK.

MODIFY UI TEXT WITHIN YOUR APPLICATION

  1. In Solution Explorer, under Views\Shared open the _Layout.cshtml file.
  1. Within the body tag, find the title of the page enclosed in h1 tags. Change the title text from My MVC Application to To Do List. Here is where you type this in:

RUN YOUR APPLICATION LOCALLY

Run the application to verify that it works.
  1. Within Visual Studio, press F5.
  2. Your application should appear running in a browser:

No comments:

Post a Comment

Note: only a member of this blog may post a comment.