mrt 4 - .net 4.0 instructions

Upload: kaylee-jing

Post on 15-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    1/15

    MRT 4 - .NET 4.0 Instructions

    Objective:

    1. Review new features of Visual Studio 2010

    2. Create an MVC 2 application (MRT4MVC) using C# and ASP.Net

    3. Create a website application (MRT4WEB) using C# and ASP.Net

    Part A:

    Training:

    The training materials are in the attached file namedMRT 4

    .NET 4.0 Training.doc.

    1

    Part A:

    Turn in as Hardcopy the sourcecode and screenshots of the

    running projectsMRT4MVCapp andMRT4Website.

    Submit to BB the two zipped projectsMRT4MVCapp andMRT4Website

    you have created in theMRT 4 .NET 4.0 Training.doc.

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    2/15

    Part B:

    This MRT should exercise the use of C# code, html tags, ASP.NET/ASP.NET MVC

    syntax, database connectivity, MVC (model-view-controller) applications, and Web

    Site creation with basic login features through the use of new features of Microsoft

    Visual Studio 2010.

    MVC Application & Website Creation Requirements:

    SQL Server Express (SQL Server) must be installed on your system, including

    Microsoft Visual Studio 2010. The MVC web application is to be created with

    ASP.NET MVC 2 since this is the current web application used extensively with

    Microsoft Visual Studio 2010 (ASP.NET MVC 3 recently was released). The web site

    to be created will have basic user login capabilities. Design and implement a MVC

    web application and a web site in accordance with the methods of this tutorial.

    Development requirements:

    The MVC web application and Web Site must be created exactly as instructed

    in the Programming Requirements below.

    The MVC web application and Web Site must have basic login/registration/etc.

    abilities and hyperlinks must work correctly, as indicated in the

    Programming Requirements below.

    The output screenshots of your programs must match the actual programs

    you submit.

    1. Implement a MVC (Model-View-Controller) web application in C# underthe Visual Studio 2010 IDE (543 & 200 PGH), call it MRT4MVC,observing the following rules.

    2. Implement a Web Site in C# under the Visual Studio 2010 IDE (543 &200 PGH), call it MRT4WEB, observing the following rules.

    2

    Part B:

    Turn in as Hardcopy the sourcecode and screenshots of the

    running projects MRT4MVC andMRT4WEB as requested below.

    Submit to BB the two zipped projects MRT4MVC andMRT4WEB

    you have created in theMRT 4 .NET 4.0 Instructions.doc.

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    3/15

    Programming Requirements:

    MVC Web Application MRT4MVC

    Create the same website (content/design-wise; look is different though) withthe restrictions and requirements (excluding exceptions below) of the WebSite before, except now it is an MVC Web Application.

    Create the MVC Web Application website in accordance with the descriptionsand pictures below.

    Create database and database connectivity using Code-First paradigm asexplained in the tutorial (create the same table in the Members page ofthe MVC web application website).

    Hint #1: Use the Design tab to help you design the MVC web application.

    Hint #2: Use the knowledge, methods, and applications you acquired fromcompleting the Web Site above to complete this MVC web application.

    Hint #3: To create hyperlinks from one page to another page: Instead oftyping the same exact syntax used when creating the Web Site (e.g.Creating the page-to-page hyperlink withNavigateUrl=~/Home/Members.aspx) use the same syntax but replacenavigation URL with actual folder directory (e.g. creating hyperlink with

    NavigateUrl=~/Home/Members/).

    Hint #4: Use the patterns between model, view, and controller items toupdate and create more model, view, and controller items.

    Exceptions: The Members page does not have to accessible to only alogged-in user, so create it in the Home folder and NOT the Accountfolder. The Change Password hyperlink does NOT have to be hidden when auser is NOT logged-in as with the previously created Web Site.

    3

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    4/15

    4

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    5/15

    5

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    6/15

    6

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    7/15

    Member Site w/o database

    7

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    8/15

    Provide screenshot of member page with database.

    8

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    9/15

    Web Site MRT4WEB

    The title of the web site for all pages is UH Cougar Fans Website. The

    pages and tabs to be included are Home, About, and Members. TheMembers page should only be accessible to users who are registered andlog-in to the site. A [Log In] link should be accessible when a user has NOTlogged in to the web site, as indicated in the picture below.

    The header for the Home page is Welcome to the UH Cougar FanWebsite!; the body sentences positioned on separate lines are Check outthe Computer Science departmental website at www.cs.uh.edu.,Please visit UHs main website for more information and links., andIf you are a member of this site, go to member page here..

    The text www.cs.uh.edu and information and links should be

    hyperlinked http://www.cs.uh.edu/ and www.uh.edu, respectively. On theother hand, the text labeled here should be hyperlinked to the Memberspage of the web site.

    9

    http://www.cs.uh.edu/http://www.cs.uh.edu/http://www.cs.uh.edu/http://www.uh.edu/http://www.cs.uh.edu/http://www.cs.uh.edu/http://www.cs.uh.edu/http://www.uh.edu/
  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    10/15

    The text www.cs.uh.edu must have a mouse-over effect with tool-tip textCOSC Website.

    The text information and links must have a mouse-over effect with tool-tip text UH Homepage.

    10

    http://www.cs.uh.edu/http://www.cs.uh.edu/
  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    11/15

    The header text for the About page is About UH and should beunderlined; the body sentences positioned on separate lines are*University of Houston was established as a junior college in 1927.,*The University of Houston teaches over 37,000undergraduate/graduate students each year., *As of last year, over4,500 students were enrolled in the College of Natural Sciences and

    Mathematics., and Go Coogs!!!.

    11

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    12/15

    The Log In page should appear if you try to access the Members pagewithout being logged in to the website.

    12

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    13/15

    The header text for the Members page is Cougar Members and shouldbe underlined; the body sentences positioned on separate lines are As amember of this website, you are also a member of UH!!!, GoCoogs!!!, Click below to return to the homepage., andHomepage.

    The text labeled Homepage should be hyperlinked to the Home (default)page of the web site.

    The Change Password and [Log Out] links should be accessible whena user has successfully logged in to the web site, as indicated in the picturebelow.

    13

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    14/15

    Provide screenshots of above pages.

    14

  • 8/4/2019 MRT 4 - .NET 4.0 Instructions

    15/15

    Note: Do your best to create the MVC web application

    MRT4MVC and Web SiteMRT4WEBexactly as indicated in the

    descriptions and pictures above (e.g. spacing, content, etc.).

    15