@manhng

Welcome to my blog!

ASP.NET and Angular

September 10, 2020 11:33

ASP.NET and Angular (edit)

gtechsltn/clean-architecture-in-asp-net-mvc-5: An open-source sample project demonstrating how to implement Uncle Bob's Clean Architecture practice called "Screaming Architecture" in ASP.NET MVC 5. (github.com) (HAY HAY HAY)

  • ASP.NET MVC 5
  • ASP.NET Web API 2 REST Service
  • SQL Server 2008 R2
  • Dapper
  • Stored Procedure
  • IIS 10
  • Angular 6
  • Bootstrap
  • Font Awesome
  • Angular Material

https://medium.com/asp-net-and-angular/how-to-create-an-asp-net-mvc-5-project-with-angular-6-in-visual-studio-part-1-8b116e19a335

https://medium.com/asp-net-and-angular/how-to-create-an-asp-net-mvc-5-project-with-angular-6-in-visual-studio-part-2-1cea70c85114

http://www.hanselman.com/blog/OneASPNETMakingJSONWebAPIsWithASPNETMVC4BetaAndASPNETWebAPI.aspx

https://bitoftech.net/2013/11/25/detailed-tutorial-building-asp-net-web-api-restful-service/

https://docs.microsoft.com/en-us/aspnet/web-api/overview/web-api-routing-and-actions/create-a-rest-api-with-attribute-routing

https://www.c-sharpcorner.com/article/hosting-asp-net-web-api-rest-service-on-iis-10/

https://www.completecsharptutorial.com/mvc-articles/insert-update-delete-in-asp-net-mvc-5-without-entity-framework.php (CRUD)

https://docs.microsoft.com/en-us/aspnet/mvc/overview/security/create-an-aspnet-mvc-5-web-app-with-email-confirmation-and-password-reset (SendGrid)

https://docs.microsoft.com/en-us/azure/sendgrid-dotnet-how-to-send-email (SendGrid with Azure)

MVC 5 + ASP.NET 4.5 + Entity Framework 6

July 2, 2018 09:55

SQL SERVER 2012 Express LocalDB

2012: https://www.mssqltips.com/sqlservertip/2694/getting-started-with-sql-server-2012-express-localdb/

2016: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-2016-express-localdb

HDSD: https://www.sqlshack.com/how-to-connect-and-use-microsoft-sql-server-express-localdb/

MVC 5 + ASP.NET 4.5 + Entity Framework 6 (edit)

ASP.NET MVC 5 Folder Structure

  • Views - Views.
  • Controllers - Controller classes.
  • Models - Model classes.
  • App_Data - LocalDB sample database.

Clean Architecture

http://www.matthewrenze.com/articles/clean-architecture-in-asp-net-mvc-5/

Feature Folders

https://bojanv91.github.io/posts/2016/05/feature-folders-structure-in-asp-net

LocalDB

https://www.completecsharptutorial.com/asp-net-mvc5/asp-net-mvc-5-folder-structure.php

Best Practices, Coding Standards & Folder Structure For ASP.NET MVC Project

https://www.c-sharpcorner.com/UploadFile/a8024d/best-practices-coding-standards-folder-structure-for-asp/

Others

https://8thlight.com/blog/uncle-bob/2011/09/30/Screaming-Architecture.html

Simple Folders

http://www.tutorialsteacher.com/mvc/mvc-folder-structure

Samples

https://github.com/telerik/kendo-examples-asp-net

https://github.com/telerik/kendo-examples-asp-net-mvc

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',
        });
    });
});

Categories

Recent posts