Today, I spent a couple of hours in finding the best suited fix of this issue. Actually that was a very simple problem and we may fix it by adding another http request layer in the application but that was not a productive choice.
If you create a MVC 4 application using "Internet" template, you will find the "BundleConfig.cs" file in the "App_Start" folder; open it.
You will notice there is a total of 6 bundles (jQuery and CSS) being processed. Now, open the "_Layout.cshtml" file and look at this image:
You will notice only three bundles are added by default. We have to add 2 more to enable the use of Datepicker.
Note to use the same ordering.
Now, on the view page use as follows:







Chittaranjan SwainPosted Dec 20, 2019, 8:54 AM EST
Nice article.
Peer MohammedPosted Jul 17, 2017, 11:32 PM EDT
Please help me it doesn't working for me too
karthi keyanPosted Dec 29, 2015, 8:08 PM EST
Please help does not working in Mvc 4
Anil KumarPosted Nov 5, 2015, 7:27 PM EST
thanks
Rocky RoyalsonPosted Sep 30, 2015, 11:48 AM EDT
Very Nice Article,Hello Sir, I followed your steps and it's amaze, I really appreciate your explanation, could you please give 1 more example, to have 2 Date Picker Controls, one is Start Date and Another one is End Date, When I will Select End Date then based upon the Start Date and End Date, I need to get the number of days and no. of Weeks On the Label, I have total 5 Row's and each row will have 2 Date Picker, Start Date, End Date,....Please help me to get values using Jquery Date Picker, Thank you very much!!!
jitendra Singh 0Posted May 8, 2015, 1:56 AM EDT
Awesome thanks a lot
shravan kumarPosted Jan 10, 2015, 2:21 AM EST
Really ur amazing.....no one give right solution for me,but only you can give......thanq so much for sharing your knowledge
Md Ilyas Hasan MamunPosted Oct 27, 2014, 9:55 AM EDT
Nice Article... ... ... JQuery UI Datepicker in ASP.NET MVC 5 STEP BY STEP... ... ... ... ... .http://www.ilyasmamunbd.blogspot.com/2014/02/jquery-ui-datepicker-popup-calendar.html
dipti prasadPosted Oct 9, 2014, 10:34 PM EDT
Please help me wt we do?
dipti prasadPosted Oct 9, 2014, 10:33 PM EDT
An exception of type 'System.ArgumentException' occurred in System.Web.Optimization.dll but was not handled in user code Additional information: Directory does not exist.
dipti prasadPosted Oct 9, 2014, 10:31 PM EDT
have one error on my budle
Krutika MahabalePosted Mar 17, 2013, 5:34 PM EDT
Yeah its works!helpful blog
Thierry FierenseditedPosted Jan 30, 2013, 5:01 PM ESTEdited Jan 30, 2013, 5:01 PM EST
Hi,I followed your steps up to the bundling part leaving out only the script in the view part as I wanted to test this first and when I run the mvc4 website, I get the following error:JavaScript critical error at line 14, column 1 in http://localhost:56152/Content/themes/base/jquery.ui.core.cssSCRIPT1002: Syntax errorIf I click on the Continue button, it will display a similar for what appears to be all the .css files located in the base folder.Any ideas what's causing this?Thanks.