@manhng

Welcome to my blog!

Layout in ASP.NET MVC 5

June 20, 2020 09:57

Layout in ASP.NET MVC 5 (edit)

https://hoanguyenit.com/aspnet-mvc5-create-shared-layout-razor-and-viewstart.html

https://www.completecsharptutorial.com/asp-net-mvc5/asp-net-mvc-5-create-master-page-layout-with-easy-steps.php

https://www.completecsharptutorial.com/mvc-articles/mvc-design-master-page-layout-with-css-html-template.php

https://www.tutorialsteacher.com/mvc/layout-view-in-asp.net-mvc

https://www.tutorialsteacher.com/mvc/create-layout-view-in-mvc

Unicode trong ASP.NET MVC

@Html.Raw(mystring)
  </system.web>
<globalization fileEncoding="utf-8" />
</system.web>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

How to allow Unicode characters in web.config for my ASP.NET MVC application?

https://coding4food.net/2017/01/17/asp-net-mvc-khac-phuc-loi-chu-tieng-viet-unicode-bi-encode-trong-view/

https://stackoverflow.com/questions/36780641/how-to-allow-unicode-characters-in-web-config-for-my-mvc-application

https://weblog.west-wind.com/posts/2007/Dec/23/Charset-Encoding-in-ASPNET-Response

https://www.c-sharpcorner.com/UploadFile/201fc1/reading-and-writing-unicode-data-in-net/

Tải ảnh của trang về

https://quantrimang.com/lam-sao-de-tai-anh-khong-cho-copy-tren-web-ve-may-tinh-121399

Chrome > F12 > Application > Frames > top > Images

Razor Syntax in ASP.NET MVC 5

https://haacked.com/archive/2011/01/06/razor-syntax-quick-reference.aspx/

https://docs.microsoft.com/en-us/aspnet/web-pages/overview/getting-started/introducing-razor-syntax-c

https://stackoverflow.com/questions/3626250/escape-character-in-razor-view-engine

https://www.tutorialsteacher.com/mvc/razor-syntax

Razor Syntax in ASP.NET Core MVC

https://docs.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-3.1

https://aspnetcore.readthedocs.io/en/stable/mvc/views/razor.html

Global Search Feature in Layout (HAY)

https://stackoverflow.com/questions/37306604/how-to-design-an-mvc5-global-search-feature-in-layout-cshtml

Create multi folders by CMD

md data\rs1 data\rs2 data\rs3

ASP.NET Core 2.1

https://hoanguyenit.com/upload-multiple-file-using-ajax-in-aspnet-core21.html

https://hoanguyenit.com/pagination-using-aspnet-core-21.html

Utils

https://github.com/Aaronontheweb/mvc-utilities

https://github.com/benjaminkeeping/Mvc.Extensions/

https://github.com/dherod/MVC5_CSharp_DesignToolbox/

https://github.com/elbandit/Asp-Net-Design-Patterns

https://github.com/siddardh/online-shopping-cart-MVC

Onion architecture, ASP.NET MVC 5, Web API, AngularJS, Entity Framework, Autofac, Automapper

https://github.com/MohamedNacer/ASP-MVC5-Enterprise-application-Architecture-Example

Entity Framework Autofac Automapper NLogger Unit of work MVC 5 AngularJS Material Design HTML5 ASP.NET Identity Token based authentication NUnit Moq Onion design arhitecture Repository pattern Dependency Injection

https://github.com/semihbas/ProductPricing

eShopOnWeb in VB.NET (.NET Core 3.1)

https://github.com/VBAndCs/eShopOnWeb_VB.NET

Material CMS

https://github.com/DucThanhNguyen/MaterialCMS

Material CMS

Material CMS is a fork of the ASP.NET MVC 5 C# open source content management framework MrCMS

Material CMS wraps up a lot of the time consuming aspects of website creation. Material CMS is a framework for developers create bespoke website whilst at the same time giving content editors an easy to use CMS.

Road map:

  • Material Design for Default theme and admin area
  • Better multi-languages support for both backend and frontend
  • Create more useful apps
  • Add more elegant and ready-to-use themes
  • Installation which allows to setup quickly for different kinds of websites
  • Frequently update and better support

Apps

Apps in Material CMS contain all the functionality your website requires. For example, you might want a Blog App which contains page definitions for a list of blogs and a blog page itself.

Material CMS comes with 3 basic apps, 'Core', 'Articles' and 'Galleries'. The CoreApp contains basic concepts such as login and registration. It also has some basic page types such as 'TextPage' which can be used as a base page type for other pages.

Ultimately though, you can throw these three apps out and start building your own if you want.

Feature list

  • Unlimited document types
  • Lucene based search architecture - easily create search indexes for super fast content filtering and searching of '000's of items.
  • Layouts & Layout areas give complete control over widgets on each page
  • Bulk media upload and management
  • Azure or file based media storage
  • Inline content editing
  • Error logging
  • Task management
  • SEO - Control over meta details
  • URL History table - keep track of URL changes. When a URL changes create 301 redirect to new location
  • URL History - add URLs at will to create redirects or if importing from another system add in the original URLs here
  • Form builder - create forms on the fly and collect their data
  • Enforce user login to page
  • SSL per page
  • User management & roles
  • Document version control
  • Complete control of page meta data - I.E when creating a page type (e.g BlogPage) control what type of pages can be added below it, say weather the page can maintain url hierarchy, say how many children should show in the page tree in item (if there are 000's of pages you might only show the top 5 pages) and lots more
  • Content managed into apps
  • Themes - override standard views
  • Multi-site capability - run multiple domains through one set of files & admin system
  • ACL
  • Webpage import and export
  • Site duplication button to duplicate a website quickly
  • Azure support

MVC Design

https://github.com/thiagolunardi/MvcMusicStoreDDD

MVC MusicStore Application

The same known MusicStore application, published by Microsoft, but written using tons of design and architectural patterns to force the delivery of a high quality code and provide a responsable development.

Implemented Tools

  • ASP.NET MVC 5.2.3
  • EntityFramework 6.1.2
  • ADO.NET 4.0
  • Dapper 1.38
  • SQL Server Compact 4.0
  • AutoMapper 3.3.1
  • Ninject 3.2.2.0
  • Service Locator 1.3

Patterns Applied

  • DDD - Domain Drive Design
  • SOLID
    1. SRP - Single Responsability Principle
    2. OCP - Open Close Principle
    3. LSP - Liskov Substitution Principle
    4. ISP - Interface Segregation Principle
    5. DIP - Dependency Invertion Principle
  • Self Validation
  • TDD - Teste Driven Design
  • CrossCutting
  • Dependency Injection
  • Invertion of Control
  • Service Locator

Categories

Recent posts