I cannot get jQuery UI working in my ASP.NET MVC4 application. I tried dialog and datepicker. Here is part of the code of my view.
You will need to add a couple lines to your _Layout.cshtml to get jQuery UI working out of the box. First is the javascript bundle:
@*you should already have this line*@
@Scripts.Render("~/bundles/jquery")
@*add this line*@
@Scripts.Render("~/bundles/jqueryui")
Next you need the CSS for jQuery UI as well:
@*you should already have this line*@
@Styles.Render("~/Content/css")
@*add this line*@
@Styles.Render("~/Content/themes/base/css")