@manhng

Welcome to my blog!

ASP.NET MVC (CRUD)

January 4, 2022 17:33

CRUD ASP.NET MVC (edit)

Series ASP.NET MVC - Part 1: Bước đầu làm quen với asp.net mvc, tạo ứng dụng web đầu tiên. (viblo.asia)

Series ASP.NET MVC - Part 2: Tạo ứng dụng web với Entity Framework 6 Code First MVC 5 (viblo.asia)

Series ASP.NET MVC - Part 3: Sử dụng ViewModel (viblo.asia)

Series ASP.NET MVC - Part 4: Sử dụng Migration để thay đổi cấu trúc của dữ liệu trong quá trình Development (viblo.asia)

ASP.NET MVC

August 20, 2020 23:38

ASP.NET MVC

https://dzone.com/articles/top-10-websites-written-using-aspnet-mvc

https://www.danylkoweb.com/Blog/10-reasons-to-start-using-aspnet-mvc-E9

https://www.danylkoweb.com/Blog/where-can-i-find-sample-aspnet-mvc-projects-HL

https://builtwith.com/toolbar

ASP.NET Core 3.1 Web API + .NET Core CLI

https://medium.com/swlh/securing-your-net-core-3-api-using-identity-93d6426d6311 (HAY HAY HAY)

https://www.learnentityframeworkcore.com/walkthroughs/existing-database (HAY HAY HAY)

https://stackoverflow.com/questions/56862089/cannot-find-command-dotnet-ef

https://docs.microsoft.com/en-us/dotnet/core/tools/troubleshoot-usage-issues

https://github.com/dotnet/efcore/issues/15448

dotnet tool install --global dotnet-ef

AdminLTE + ASP.NET MVC + Angular

June 1, 2020 10:10

AdminLTE + ASP.NET MVC (edit)

https://github.com/go2ismail/AdminLTE-ASP-NET-MVC/

https://marketplace.visualstudio.com/items?itemName=c0shea.AdminLTETemplate

https://www.prishusoft.com/blog/Integrate-AdminLTE-theme-to-Angular-Project.html

AdminLTE + ASP.NET Core MVC

https://github.com/manhng83/AdminLTEWithASPNETCore

https://github.com/manhng83/AdminLTE-Starter-Kit

https://github.com/manhng83/AdminLTE.Core

https://github.com/manhng83/AdminLTE.MVC

https://github.com/manhng83/AspNetCore-DDD

https://github.com/manhng83/Boilerplate

https://manhng.com/blog/aspnet-5/

https://manhng.com/blog/starter-kit/ 

https://github.com/manhng83/EquinoxProject

https://github.com/manhng83/SimpleMultiTenant

https://stackify.com/writing-multitenant-asp-net-core-applications/

https://michael-mckenna.com/multi-tenant-asp-dot-net-core-application-tenant-resolution

Integrating AdminLTE with ASP.NET Core 3.1 – Detailed

https://www.codewithmukesh.com/blog/integrating-adminlte-with-aspnet-core/ (ASP.NET Core 3.1)

https://www.howtosolutions.net/2020/06/visual-studio-asp-net-mvc-project-installing-adminlte-dashboard-template/

How to Integrate AdminLTE with ASP.NET Core 3.1

Social Network for Programmers and Developers (morioh.com)

PureSourceCode | All technologies, only pure source code

How to integrate AdminLTE in an ASP.NET Core MVC

https://github.com/erossini/AdminLTEWithASPNETCore

How to integrate AdminLTE in an ASP.NET Core MVC and .NET 5 project

Integrating AdminLTE with ASP.NET Core | PureSourceCode

erossini/AdminLTEWithASPNETCore: How to integrate AdminLTE in an ASP.NET Core MVC and .NET5 project (github.com)

AdminLTE Starter Kit for ASP.NET Core

dotnet-express/AdminLTE-Starter-Kit: AdminLTE Starter Kit for ASP.NET Core (github.com)

AdminLTE converted to ASP.NET Core 2

moemura/AdminLTE.Core: AdminLTE converted to ASP.NET Core 2 (github.com)

iammukeshm/AdminLTE.MVC: We will learn about Integrating AdminLTE with ASP.NET Core 3.1 MVC or really any other Bootstrap based UI Frameworks completely from scratch. We will also go through about integrating Identity Authentication to our MVC Applicaiton. Also, you will gain quite a lot of practical knowledge on Views, Layouts, Partial Views, Conditional Rendering, Navigation Indicatior and much more. (github.com)

ASP.NET MVC 5 Training

https://www.c-sharpcorner.com/article/layouts-master-pages-in-Asp-Net-mvc-5-0-part-fourteen/

Top 20 GitHub-hosted projects of 2019

https://dev.to/areknawo/top-20-github-hosted-projects-of-2019-2f4f

Blog engine based on ASP.NET Core 3.1 and Twitter Bootstrap 4

https://github.com/danielpalme/MVCBlog

My Blog as an ASP.NET Core 3.1 Project http://wildermuth.com

https://www.palmmedia.de/Blog/2013/9/6/aspnet-mvc-4-blog-engine-based-on-twitter-bootstrap

https://github.com/shawnwildermuth/WilderBlog

I re-wrote my blog using a new stack of web technologies including:

  • ASP.NET Core 3.1
  • Entity Framework Core 3.1
  • Vue 2.x
  • Bootstrap 4
  • Azure Websites (Docker) and Azure Blob Storage

The ASP.NET Interns ship their project - A basic blog template for .NET Core

https://www.hanselman.com/blog/TheASPNETInternsShipTheirProjectABasicBlogTemplateForNETCore.aspx

A blogging engine based on HTML5 and ASP.NET

https://github.com/madskristensen/MiniBlog

ASP.NET MVC with Entity Framework and CSS

https://github.com/Apress/asp.net-mvc-w-entity-framework-css

ASP.NET Core Samples

https://github.com/dotnet/AspNetCore.Docs/tree/master/aspnetcore/data/ef-mvc/intro/samples/cu-final

ASP.NET MVC Core 2 project using CoreUI.io template

https://github.com/mvelosop/AspNetCore2CoreUI

AdminLTE + Select 2 + ASP.NET MVC 5

https://www.intertech.com/Blog/selecting-multiple-items-using-select2-in-mvc-5/

AdminLTE

https://codecanyon.net/tags/mvc

https://stackoverflow.com/questions/tagged/adminlte

https://adminlte-mvc5.azurewebsites.net/

ASP.NET Core 2.2 Roles And Memberships Customization Implemented Using Beautiful AdminLTE Template. C# as programming language and EF (Entity Framework) as ORM.

https://github.com/go2ismail/AdminLTE-Roles-And-Memberships-Example

Features:

  1. configuration over development (Identity configuration through appsettings.json)
  2. custom error handling (ex: 404 and 500 custom error page)
  3. user membership with dynamics roles management
  4. dbinitializer for data seed (ex: super admin user initialization)
  5. user registration and change password management
  6. basic profile management
  7. override identity user with custom column
  8. active / de-active member
  9. custom security service implemented through DI (dependency injection)
  10. xsrf / anti forgery token

Technical:

  1. C#
  2. EF (Entity Framework)
  3. jQuery
  4. Bootstrap
  5. Datatables.net
  6. crud
  7. toastr
  8. mssql

Development Tools & Environment

I'm using Visual Studio Community 2017 for the development tools on Windows 10 machine.

.Net Core Version

I'm using .Net Core 2.2

AdminLTE - ASP.NET Core 2.x

ASP.NET Example version of famous and beautiful AdminLTE control panel themes and template. http://adminlte-template.indotalent.com

https://github.com/go2ismail/adminlte-aspnetcore2-version

AdminLTE

AdminLTE - is a Free Premium Admin control Panel Theme Based On Bootstrap 3.x

the creator of AdminLTE is Abdulllah Almsaeed

follow this AdminLTE link for original HTML/JavaScript version.

ASP.NET Core 2 MVC Version

this repo, provide full ASP.NET Core 2 MVC version of AdminLTE, consisting all the demo pages provided by HTML/JavaScript version of AdminLTE such as:

  • Dashboard
  • Layout
  • Widgets
  • Charts
  • UI Elements
  • Forms
  • Tables
  • Calendar
  • Mailbox
  • Examples
  • Multilevel

Development Tools & Environment

I'm using Visual Studio Community 2017 for the development tools on Windows 10 machine. For this project, i'm using AdminLTE version 2.4.0.

AdminLTE ASP.NET Core 2 MVC Version Usage

You can Clone / Download the repo and then start building beautiful web app using this visual studio solution. From this project you can also learn how to:

  • work with controller
  • work with view
  • work with partial view
  • work with layout
  • work with JavaScript / jQuery
  • work with razor
  • create HTML helper extension

Simple CRUD Example

I have provide simple Ajax jQuery CRUD example

AdminLTE on this blog

https://manhng.com/archive/adminlte/

AdminLTE - FullCalendar

https://www.c-sharpcorner.com/article/asp-net-mvc5-full-calendar-jquery-plugin/

https://gunnarpeipman.com/using-fullcalendar-jquery-component-with-asp-net-mvc/

https://www.toshalinfotech.com/Blogs/ID/115/How-to-Integrate-Full-calendar-with-MVC-application

https://github.com/RobertHajbok/FullCalendarMVC

https://www.codeproject.com/articles/874283/event-calendar-in-asp-net-mvc-and-entity-framework

AdminLTE - ASP.NET MVC 5

AdminLTE - Free admin dashboard template based on Bootstrap 4 https://adminlte.io

https://github.com/ColorlibHQ/AdminLTE

ASP.NET MVC - Installing AdminLTE dashboard to replace Bootstrap template

https://www.howtosolutions.net/2017/05/visual-studio-asp-net-mvc-project-installing-adminlte-control-panel/

Building elegant applications with ASP.NET MVC Core 2 and Bootstrap 4 using CoreUI

https://www.coderepo.blog/posts/building-elegant-applications-aspnet-mvc-core-2-bootstrap-4-coreui/

ASP.NET Example Version of Beautiful AdminLTE Template https://adminlte-mvc5.azurewebsites.net/

https://github.com/go2ismail/AdminLTE-ASP-NET-MVC

I'm using Visual Studio Community 2015 for the development tools on Windows 10 machine. For this project, I'm using AdminLTE version 2.4.0.

It provides full ASP.NET MVC version of AdminLTE, consisting all the demo pages provided by HTML/JavaScript version of AdminLTE such as:

  • Dashboard
  • Layout
  • Widgets
  • Charts
  • UI Elements
  • Forms
  • Tables
  • Calendar
  • Mailbox
  • Examples
  • Multilevel

You can also learn how to:

  • work with controller
  • work with view
  • work with partial view
  • work with layout
  • work with JavaScript / jQuery
  • work with razor
  • create HTML helper extension

ASP.NET MVC 5 Development Training - 5 days

https://www.intertech.com/Training/Microsoft/Visual-Studio/MVC/ASP-NET-MVC-5-Development

https://cgeers.wordpress.com/2012/09/23/getting-started-with-twitter-bootstrap/

Description

In this course, students will learn to develop advanced ASP.NET MVC applications using .NET Framework tools and technologies. The focus will be on coding activities that enhance the performance and scalability of a web application. ASP.NET MVC will be introduced and compared with Web Forms so that students know when each should/could be used. This course will also prepare the students for exam 70-486.

Learning Objectives

After completing this course, students will be able to:

  • Describe the Microsoft Web Technologies stack and select an appropriate technology to use to develop any given application.
  • Design the architecture and implementation of a web application that will meet a set of functional requirements, user interface requirements, and address business models.
  • Create MVC Models and write code that implements business logic within Model methods, properties, and events.
  • Add Controllers to an MVC Application to manage user interaction, update models, and select and return Views.
  • Create Views in an MVC application that display and edit data and interact with Models and Controllers.
  • Run unit tests and debugging tools against a web application in Visual Studio and configure an application for troubleshooting.
  • Develop a web application that uses the ASP.NET routing engine to present friendly URLs and a logical navigation hierarchy to users.
  • Implement a consistent look and feel, including corporate branding, across an entire MVC web application.
  • Use partial page updates and caching to reduce the network bandwidth used by an application and accelerate responses to user requests.
  • Write JavaScript code that runs on the client side and utilizes the jQuery script library to optimize the responsiveness of an MVC web application.
  • Implement a complete membership system in an MVC web application.
  • Build an MVC application that resists malicious attacks and persists information about users and preferences.
  • Describe how to write a Microsoft Azure web service and call it from and MVC application.
  • Describe what a Web API is and why developers might add a Web API to an application.
  • Modify the way browser requests are handled by an MVC application.
  • Describe how to package and deploy an ASP.NET MVC web application from a development computer to a web server for staging or production.

Audience

This course is intended for professional web developers who use Microsoft Visual Studio in an individual-based or team-based, small-sized to large development environment. Candidates for this course are interested in developing advanced web applications and want to manage the rendered HTML comprehensively. They want to create websites that separate the user interface, data access, and application logic.

Prerequisites

Before attending this course, students must have a minimum of two to three years of experience developing web-based applications by using Microsoft Visual Studio and Microsoft ASP.NET, proficiency in using the .NET Framework, and some familiarity with the C# language.

Course Outline

Delegates, Anonymous Methods, and Lambdas

  • Understand four ways to use delegates
  • Anonymous methods with the delegate keyword
  • Lambda shorthand notation
  • Using Lambdas in ASP.NET MVC 5

Extension Methods, Anonymous Types, and Dynamic Types

  • Understanding extension methods
  • Using extension methods in ASP.NET MVC 5
  • Understanding Anonymous Types
  • Using Anonymous Types in ASP.NET MVC 5
  • Understanding the dynamic keyword
  • Using dynamic Types in ASP.NET MVC 5
  • Introduction to the Task Parallel Library (TPL)
  • Using the TPL in ASP.NET MVC 5

Introduction to LINQ

  • Understand the motivation behind LINQ
  • Visual Studio LINQ support
  • Debugging LINQ query expressions
  • Work with query operators and query expressions
  • Program with LINQ to Objects
  • Understand deferred and immediate execution
  • Know the role of the System.Linq.Enumerable type
  • Know the role of the System.Func delegate type
  • Understanding the query operators / delegates / lambda relationship

Introduction to ASP.NET MVC 5

  • ASP and ASP.NET WebForms
  • One ASP.NET in VS 2013
  • Web Standards and REST
  • JavaScript and Ajax
  • The MVC Design Pattern
  • Unit Testing
  • Managing Dependencies

ASP.NET MVC Architecture

  • ASP.NET Platform
  • Controllers, Models, and Views
  • URL Routing
  • Controller Actions
  • Razor View Engine
  • Extensibility

Defining the Model

  • Persistence Ignorance
  • Repository Pattern
  • Object Relational Mapping (ORM)
  • Entity Framework
  • Using an IoC Container

Routes and URLs

  • Introduction to Routing
  • Defining Routes
  • Route Evaluation
  • The Controller Factory
  • Constraints
  • Exempting URLs
  • Constructing Outgoing URLs
  • Unit Testing Routes

Controllers and Actions

  • IController, ControllerBase, and Controller
  • Defining Actions
  • Action Selectors
  • Action Filters
  • HTTP Verbs
  • HttpContext and RouteData
  • Maintaining Testability
  • Returning Data with ActionResult
  • Parameters and the Model Binder
  • Asynchronous Action Methods

Views

  • View Engines
  • Templates and Scaffolding
  • Bootstrap Framework
  • Razor Syntax
  • ViewData and ViewBag
  • Strongly-Typed Views
  • Layout Pages
  • Custom Sections
  • Partial Views
  • Child Actions
  • Using a ViewModel Object

HTML Helpers

  • Basic Helpers
  • Strongly-Typed Helpers
  • Creating Custom Helpers
  • Declarative Helpers

Data Validation

  • Data Annotations
  • Validation HTML Helpers
  • ModelState
  • IValidatableObject
  • Client Side Validation

Authentication and Authorization

  • ASP.NET Identity
  • Using Windows Authentication
  • Building a Custom Account Controller
  • Configuring Forms Authentication
  • Using the Authorize Attribute
  • Authentication Filters
  • OAuth2 and OpenID

Ajax

  • Controller Actions for Ajax
  • Ajax Helpers
  • Unobtrusive Ajax
  • Ajax with jQuery

Web API 2

  • Using HTTP as an Application Protocol
  • Content Negotiation
  • Routing
  • Attribute Routing
  • ApiController
  • MediaTypeFormatters
  • Cross Origin Resource Sharing (CORS)
  • Open Web Interface for .NET (OWIN)
  • Web API OData

Building a Rich Client-Side UI

  • jQuery UI
  • jQuery Templates

Mobile Clients

  • CSS 3 Media Queries
  • Responsive vs. Adaptive
  • Mobile-Specific Views
  • Using a View Switcher

Customizing and Extending ASP.NET MVC

  • ASP.NET MVC Pipeline
  • Advanced Routing
  • Custom Global Filters
  • Customizing MVC Code Templates
  • Creating a Custom Controller Factory

Deployment

  • Server Requirements
  • Configuration Options

Javascript Menu + ASP.NET MVC 5 Samples

June 4, 2019 21:16

Javascript Menu + ASP.NET MVC 5 Samples (edit)

https://www.cnblogs.com/jesse2013/p/aspnet-identity-claims-based-authentication-and-owin.html

https://brockallen.com/2013/10/24/a-primer-on-owin-cookie-authentication-middleware-for-the-asp-net-developer/

OWIN cookie authentication middleware

https://dotnetcodr.com/security-and-cryptography/

http://paginaswebpublicidad.com/ (tiếng Việt)

https://visualstudiomagazine.com/articles/2013/08/01/leveraging-claims-based-security-in-aspnet-45.aspx

https://www.scoop.it/topic/asp-net-mvc

https://gunnarpeipman.com/aspnet/what-is-claims-based-authentication/

https://dotnettutorials.net/lesson/token-based-authentication-web-api/

https://www.future-processing.pl/blog/introduction-to-claims-based-authentication-and-authorization-in-net/

https://brockallen.com/2013/10/24/a-primer-on-owin-cookie-authentication-middleware-for-the-asp-net-developer/

http://benedict-chan.github.io/blog/2014/03/28/authentication-logics-from-asp-dot-net-mvc-4-to-5/

https://hoodbash.com/en-us/p/yi1gi/invalidating-cookie-after-password-changed-in-aspnet-mvc-5-with-owin

https://www.thereformedprogrammer.net/user-impersonation-in-mvc-using-asp-net-identity-2/

Cookie based Authentication & Authorization Guide

https://www.aspsnippets.com/Articles/Cookie-based-Authentication-Login-example-in-ASPNet-MVC.aspx

https://dotnetcodr.com/2013/02/11/introduction-to-claims-based-security-in-net4-5-with-c-part-1/

https://dotnetcodr.com/2013/02/14/introduction-to-claims-based-security-in-net4-5-with-c-part-2-the-new-inheritance-model/

https://dotnetcodr.com/2013/02/18/introduction-to-claims-based-security-in-net4-5-with-c-part-3-claims-transformation/

https://dotnetcodr.com/2013/02/21/introduction-to-claims-based-security-in-net4-5-with-c-part-4-authorisation-with-claims/

Claims based Authentication & Authorization Guide

https://www.future-processing.pl/blog/introduction-to-claims-based-authentication-and-authorization-in-net/ (Thinktecture IdentityServer)

https://www.codeguru.com/csharp/.net/net_security/asp.net-mvc-and-claim-based-security.html

https://leastprivilege.com/2016/12/16/identity-vs-permissions/

https://leastprivilege.com/2012/10/26/using-claims-based-authorization-in-mvc-and-web-api/

Claims Based Authorization

https://code.msdn.microsoft.com/Claims-Based-Authorization-89cf736e

https://code.msdn.microsoft.com/Custom-Token-ddce2f55

https://github.com/Azure-Samples/active-directory-dotnet-webapp-openidconnect

  • ASP.NET MVC 5
  • ASP.NET Identity
    • Entity Framework: Install-Package Microsoft.AspNet.Identity.EntityFramework
  • Cookie-based Authentication
    • Microsoft.Owin.Host.SystemWeb: Install-Package Microsoft.Owin.Host.SystemWeb
    • Microsoft.Owin.Security.Cookies: Install-Package Microsoft.Owin.Security.Cookies
  • Claims-based Authorization (Claim-based Authorization Middleware with Owin and Katana libraries using .Net 4.5.2 framework)

ASP.NET Identity & Cookie based authentication

https://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-1

https://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-2

https://www.red-gate.com/simple-talk/dotnet/asp-net/handmade-claims-based-authentication-for-old-fashioned-asp-net-sites/

https://weblog.west-wind.com/posts/2015/Apr/29/Adding-minimal-OWIN-Identity-Authentication-to-an-Existing-ASPNET-MVC-Application

http://sundeepkamath.in/posts/authentication-in-asp-net-mvc-5-using-identity-libraries-part-1/

http://sundeepkamath.in/posts/authentication-in-asp-net-mvc-5-using-identity-libraries-part-2/

http://sundeepkamath.in/posts/authentication-in-asp-net-mvc-5-using-identity-libraries-part-3/

GitHub

https://github.com/AccountGo/accountgo

https://github.com/lbacaj/OpenOrderFramework

https://github.com/IntuitDeveloper/Oauth2-MVC5-DotnetSampleApp

https://github.com/hernandgr/AspNetIdentityDemo

https://github.com/deepumi/AspNetMVC5Authorization (HAY)

https://github.com/benfoster/NakedIdentity (HAY)

OWIN Forms Authentication in ASP.NET MVC 5 - OWIN Cookie Authentication middleware in ASP.NET MVC 5

https://devblogs.microsoft.com/aspnet/understanding-owin-forms-authentication-in-mvc-5/

https://blogs.msdn.microsoft.com/webdev/2013/07/03/understanding-owin-forms-authentication-in-mvc-5/

Cookies without Identity

https://stackoverflow.com/questions/54476974/can-we-use-cookie-authentication-provided-by-mvc-5-without-using-asp-net-identit

https://stackoverflow.com/questions/31584506/how-to-implement-custom-authentication-in-asp-net-mvc-5

https://stackoverflow.com/questions/32080212/asp-net-identity-2-0-custom-login-method

https://stackoverflow.com/questions/21404935/mvc-5-access-claims-identity-user-data

https://stackoverflow.com/questions/1064271/asp-net-mvc-set-custom-iidentity-or-iprincipal

https://stackoverflow.com/questions/454616/asp-net-cookies-authentication-and-session-timeouts

https://stackoverflow.com/questions/41962161/asp-net-identity-not-updating-cookie-after-modifying-claims?rq=1

Refresh Token

https://offering.solutions/blog/articles/2015/10/03/token-authentication-with-claims-and-asp.net-webapi/

https://github.com/IdentityModel/Thinktecture.IdentityModel/tree/master/samples/OAuth2/EmbeddedResourceOwnerFlow

https://github.com/IdentityModel/Thinktecture.IdentityModel/tree/master/samples/OAuth2/EmbeddedResourceOwnerFlowWithRefreshTokens

JavaScript Basics

https://autotelicum.github.io/Smooth-CoffeeScript/literate/js-intro.html

Eloquent JavaScript

http://eloquentjavascript.net/

Dynamic Menu

http://www.dynamicdrive.com/dynamicindex1/

http://www.dynamicdrive.com/dynamicindex2/

http://www.dynamicdrive.com/dynamicindex3/

http://www.dynamicdrive.com/dynamicindex4/

http://www.dynamicdrive.com/dynamicindex5/

...

Self Executing Anonymous Functions

http://markdalgleish.com/2011/03/self-executing-anonymous-functions/

Search Menu

https://www.w3schools.com/howto/howto_js_search_menu.asp

https://www.w3schools.com/howto/howto_js_filter_lists.asp

https://www.w3schools.com/howto/howto_js_filter_table.asp

https://www.w3schools.com/howto/howto_js_filter_dropdown.asp

https://www.w3schools.com/howto/howto_css_navbar_icon.asp

https://www.w3schools.com/howto/howto_css_subnav.asp

https://www.w3schools.com/howto/howto_js_dropdown.asp

ASP.NET MVC 5 using Ajax and jQuery

https://amit4dotnet.wordpress.com/2014/11/20/create-shopping-cart-in-mvc-using-ajax-and-jquery/

https://amit4dotnet.wordpress.com/2014/11/16/how-to-save-records-using-ajax-and-jquery-in-asp-net/

https://amit4dotnet.wordpress.com/2014/11/17/login-and-registration-in-mvc/

https://sensibledev.com/mvc-bootstrap-form-example/

https://sensibledev.com/bootstrap-modal-with-ajax-content/

https://getbootstrap.com/docs/4.1/components/forms/

Samples

https://www.c-sharpcorner.com/article/ajax-crud-operation-with-jquery-datatables-in-asp-net-mvc-5-for-beginners/

https://getbootstrap.com/docs/4.1/layout/grid/

http://developmentpassion.blogspot.com/2017/02/gridview-with-server-side-advacned.html

DataTables

http://www.compilemode.com/2016/03/paging-sorting-and-searching-in-asp-net-mvc-using-jQuery-DataTable.html

http://www.binaryintellect.net/articles/218ca630-ba50-48fe-af6e-6f754b5894aa.aspx (Load Dynamic Data)

https://www.codeproject.com/Tips/1057064/MVC-Master-Detail-Example-with-Partial-View-and-Mo

https://www.codeproject.com/Articles/1046102/MVC-pagination-filtering-and-sorting-inside-partia

https://www.codeproject.com/Tips/826002/Bootstrap-Modal-Dialog-Loading-Content-from-MVC-Pa

https://www.codeproject.com/Articles/531916/Master-Details-using-ASP-NET-MVC

https://www.c-sharpcorner.com/UploadFile/4b0136/working-with-dropdownlist-in-mvc-5/

http://www.codedigest.com/posts/24/search-or-filter-table-columns-in-client-side-using-jquery-in-aspnet-mvc

 

http://www.techstrikers.com/Articles/jquery-datatable-bind-json-using-asp.net-mvc5.php

https://www.codaffection.com/asp-net-mvc-tutorial/asp-net-mvc-with-jquery-ajax/

Asp.Net MVC With jQuery Ajax - CRUD Operations Demo

https://carlofontanos.com/ajax-pagination-with-search-and-sort-using-asp-net-mvc5/

ASP.NET Core MVC

https://www.c-sharpcorner.com/article/using-jquery-datatables-grid-with-asp-net-core-mvc/

ASP.NET CORE

https://www.mytecbits.com/microsoft/dot-net/bootstrap-asp-net-core-mvc

ASP.NET MVC

JavaScript xử lý chuỗi

https://toidicode.com/cac-ham-xu-ly-chuoi-trong-javascript-155.html

Power CMS Content Management System

https://codecanyon.net/item/power-cms-content-management-system-open-source-mvc-5/19754906

https://www.codeproject.com/Articles/194916/Enhancing-HTML-tables-using-a-JQuery-DataTables-pl

http://www.cyqdata.com/cnblogs/article-detail-37023-english

datatables.png

https://www.codemag.com/Article/1601031/CRUD-in-HTML-JavaScript-and-jQuery-Using-the-Web-API

ASP.NET

https://jitendragangwar007.blogspot.com/2014/09/bulk-edit-update-multiple-rows-in.html

Bootstrap Datetimepicker

March 16, 2018 00:28

Bootstrap Datetimepicker 4 (edit)

https://stackoverflow.com/questions/40035730/bootstrap-date-time-picker

https://stackoverflow.com/questions/23137720/disable-time-in-bootstrap-date-time-picker

https://stackoverflow.com/questions/40035730/bootstrap-date-time-picker

https://stackoverflow.com/questions/23137720/disable-time-in-bootstrap-date-time-picker

https://stackoverflow.com/questions/35778600/bootstrap-datepicker-locale-with-momentjs

https://stackoverflow.com/questions/33918017/bootstrap-datepicker-how-to-use-specific-time-zone

Bootstrap Datetimepicker 3

http://www.skimedic.com/blog/post/2015/04/03/Using-a-DateTime-Picker-for-ASPNET-MVC-5-with-Bootstrap.aspx

http://eonasdan.github.io/bootstrap-datetimepicker/#options

https://stackoverflow.com/questions/40035730/bootstrap-date-time-picker

https://stackoverflow.com/questions/24410685/bootstrap-3-datetimepicker-3-0-0-week-starts-at-monday

https://stackoverflow.com/questions/19382189/change-language-for-bootstrap-datetimepicker

https://stackoverflow.com/questions/22846525/bootstrap-datetimepicker-not-working

Instead of using moment.js I used moment-with-langs.js (I guess it came with default package ASP.NET MVC 5).

By calling:

<script type="text/javascript">
    $('#DateTime').datetimepicker({
        language: "hr"
    });
</script>

thing works, finally the calender starts from monday.

UPDATE: Even better, add key to web.config

<appSettings>    
    <add key="Culture" value="hr" />
</appSettings>

and then

$(document).ready(function () {
    $(document).on('focus', '#Date', function () {
        $(this).datetimepicker({
            locale: '@System.Configuration.ConfigurationManager.AppSettings["Culture"]',
            format: 'DD:MM:YYYY',
        });
    });
});

Dapper Log4net AutoMapper

March 13, 2018 08:35

How to use the Dapper (edit)

- Create new ASP.NET Web Application called WebApplication1 (MVC: Web Forms, MVC, Web API) based on .NET Framework 4.5.2

- Nuget packages:

  + Install-Package log4net

  + Install-Package Dapper

  + Install-Package MySql.Data

  + Install-Package AutoMapper

  + Install-Package Newtonsoft.Json

- Web.config/App.config

  + Define connection string in <connectionStrings> or <appSettings>

- Controllers/HomeController.cs

- Documentation

Dapper with MS SQL Server

- Dapper with raw SQL

 

- Dapper with Stored Procedure

- Sample code

Dapper with MySQL

Nuget notes

+ .NET Framework 4.5
+ ASP.NET MVC 5.2
+ ASP.NET Web API 2.2
+ Web Pages 3.2

Update-Package
Install-Package jQuery -Version 1.12.4
Install-Package Bootstrap -version 3.3.7
Install-Package modernizr
Install-Package Newtonsoft.json
Install-Package log4net
Install-Package Dapper -Version 1.50.2 (.NET Framework 4.5)
Install-Package Microsoft.AspNet.WebApi (-Version 5.2.4)
Install-Package Swashbuckle (-Version 5.6.0)

Web API & Swagger + OAuth2
http://wmpratt.com/swagger-and-asp-net-web-api-part-1/

http://wmpratt.com/part-ii-swagger-and-asp-net-web-api-enabling-oauth2/

https://www.codeproject.com/Articles/1187872/Token-Based-Authentication-for-Web-API-where-Legac

http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/ 

Categories

Recent posts