Can anyone please give me some specific steps to get a date picker working in VS 2013? From the package manager, I installed the package \"Bootstrap Datepicker
I'm answering this question to help the next poor bugger who runs into this STUPID problem.
I created a new VS application, and a basic (non-master-page) web form. Thusly:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestDatePicker.aspx.cs" Inherits="mptest.TestDatePicker" %>
Not surprisingly, it worked perfectly.
I then created a simple page like this:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="TestDatePickerMasterPage.aspx.cs" Inherits="mptest.TestDatePickerMasterPage" %>
Based on this master page (again VS stuck all the ScriptManager junk in there, I didn't):
<%@ Master Language="C#" CodeBehind="Site.master.cs" Inherits="mptest.Site" %>
Dynamic Data Site
It failed immediately with the all-too-familiar "Error: Object doesn't support property or method 'datepicker'" message. When I compared the browser source for the two pages, I noticed that there were two references to jquery in the masterpage-based one. Therefore, I commented out the following line in the master page:
Now it works perfectly.
I still have absolutely no idea what this all means or what I'm potentially breaking by removing this line, but that solved it.