@manhnguyenv

Welcome to my blog!

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