Asp net mvc

800 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
800
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Asp net mvc

  1. 1. by Bogdan Grynko SoftServe Inc.
  2. 2. Thin clients: ASP.NET ASP.NET MVC
  3. 3.  Launched in 2007 Code released under the Microsoft Public License Based on ASP.NET (integrated with existing ASP.NET features) Composed from three roles: Model, View and Controller Lightweight Highly testable
  4. 4.  Full control over html Enables TDD Easy integrate with JavaScript Following the design of stateless nature of the web RESTful urls that enables SEO No ViewState and PostBack eventsWhat under ASP.NET MVC? http://break.com/ http://townhall.com/ http://gamefly.com/ http://stackoverflow.com/ http://www.marketwatch.com/ http://dimecasts.net/ http://tfspreview.com/ http://webcrawler.com/
  5. 5.  Visual Studio up 2008(if 2008 addition package needs tobe installed ) MS SQL Server (if it is planned to use MS storage for data)
  6. 6. Create solution
  7. 7. Setup UT
  8. 8. Review solution
  9. 9. Create DB
  10. 10. Create columns
  11. 11. Add ORM Step1
  12. 12. Add ORM Step2:
  13. 13. Adding ORM Step3:
  14. 14. Web.config:
  15. 15. Deploy solution1. In Visual Studio, open the project that you want to deploy.2. In Solution Explorer, expand the References node.3. Select the following assemblies: 1. System.Web.Mvc 2. System.Web.Routing 3. System.Web.Abstractions4. In the Properties window, set Copy Local to True.5. In Solution Explorer, right-click the project and click Publish.6. The Publish Web dialog box is displayed.7. In Target location (http:, ftp:, or disk path), browse to a local folder and click Open.8. Select either Replace matching files with local copies or Delete all existing files prior to publish.9. Under Copy, select one of the following, depending on your needs: Only files needed to run thisapplication, All project files, or All files in the source project folder.10. If your application contains files in the App_Data folder such as database files, select Include filesfrom the App_Data folder.11. Click Publish.

×