MVC 5 – Third Party Date Picker that works in IE

First, send back the browser type from the controller to the browser.

ViewBag.Browser = Request.Browser.Browser; 

Add the following javascript:

 
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/
npm/daterangepicker/daterangepicker.min.js
"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.
Read the rest

MVC 5 – Model State Always False and Data Received is NULL – The Save Action Variable Name Must Be the Same Name as Your Model Name When Receiving Just the Model Portion of Your View Model That Was Bound to Your View

I struggled with this one and learned something that was not taught in the tutorial I took on MVC 5. The instructor did not mention that when you receive a model into your Save action (Controller) instead of your view Read the rest