Bài đăng

Đang hiển thị bài đăng từ tháng 11 20, 2018

Area trong ASP.Net MVC 6

Hình ảnh
MVC5WithArea.rar Download Free .NET & JAVA Files API Before reading this article, I highly recommend reading my previous parts: Getting Started With ASP.Net MVC First ASP.Net MVC 5.0 Application How to Publish ASP.Net MVC on IIS MVC 5.0: Part 3 How to Publish ASP.Net MVC 5.0 Application on Windows Azure: Part 4 ASP.NET MVC 5.0 Views (Dynamic/Strongly Typed Views) - Part 5 From ASP.Net MVC 2.0 Microsoft provided a new feature in MVC applications,  Areas . Areas are just a way to divide or “isolate” the modules of large applications in multiple or separated  MVC . like:   When you add an area to a project, a route for the area is defined in an AreaRegistration file. The route sends requests to the area based on the request URL. To register routes for areas, you add code to the  Global.asax  file that can automatically find the area routes in the  AreaRegistration  file. AreaRegistration.RegisterAllAreas(); Benefits of Area in MVC Allows us to organize mode