title: ASP.NET MVC datetime picker jQueryui
body: <p>I have an issue with ASP.Net MVC Datetime picker using JQueryUI. </p>
  
  <p>I am using jQuery 1.10.2 and JQueryUI 1.10.4 both obtained via Nuget Package Manager. </p>
  
  <p>I have also called the jQueryUI and CSS files in BundleConfig, along with calling Script.Render(..) for them both too. </p>
  
  <p>_Layout</p>
  
  <pre><code>@Styles.Render("~/Content/css")
  @Styles.Render("~/Content/themes/base/css")
  @Scripts.Render("~/bundles/modernizr")
  @Scripts.Render("~/bundles/jquery")
  @Scripts.Render("~/bundles/jqueryui")
  </code></pre>
  
  <p>BundleConfig</p>
  
  <pre><code> bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                      "~/Scripts/jquery-ui-{version}.js"));
  
  
   bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                      "~/Content/themes/base/jquery.ui.core.css",
                      "~/Content/themes/base/jquery.ui.resizable.css",
                      "~/Content/themes/base/jquery.ui.selectable.css",
                      "~/Content/themes/base/jquery.ui.accordion.css",
                      "~/Content/themes/base/jquery.ui.autocomplete.css",
                      "~/Content/themes/base/jquery.ui.button.css",
                      "~/Content/themes/base/jquery.ui.dialog.css",
                      "~/Content/themes/base/jquery.ui.slider.css",
                      "~/Content/themes/base/jquery.ui.tabs.css",
                      "~/Content/themes/base/jquery.ui.datepicker.css",
                      "~/Content/themes/base/jquery.ui.progressbar.css",
                      "~/Content/themes/base/jquery.ui.theme.css"));
  </code></pre>
  
  <p>in my view I am calling </p>
  
  <pre><code>&lt;script&gt;
  $(function () {
      $("#txtdatepicker").datepicker();
  });
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;p&gt;
      @Html.TextBox("Datepicker", "", new { @id = "txtdatepicker", @style = "width:150px;" })
      &lt;br /&gt;
      Your selected date :@ViewBag.DateValue
      &lt;br /&gt;&lt;input type="submit" value="Submit" /&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>However this simply isnt working an I have no idea what or where I am going wrong. </p>
  
  <p>I have looked all over and see that this has been a similar issue, but none of the solutions I have tried have worked. </p>
  
  <p>When I build and run the site, the view with the datetime picker textbox, making it active does not render the control. </p>
  
  <p>I am using .Net 4.5, VS2015, JQuery 1.10.</p>
  
  <p>It is probably something really simple, however I am just not getting it. </p>
  
  <p>Thank you </p>