我指的是datepicker的這個站點http://jqueryui.com/datepicker/,我的編碼與給出的源代碼非常相似。這些編碼工作正常。當添加runat =「server」時Datepicker不工作
但是...
當我加入RUNAT =「服務器」這段代碼<input type="text" id="datepicker">
點擊TextBox
當我的日曆不會出現內部。我需要把runat =「server」,這樣我才能夠在後面的代碼中使用它。
任何建議從你們將不勝感激。謝謝。
諮詢您的控制檯是否存在錯誤 – madalinivascu
您無法直接在代碼後面獲取js組件。看這裏 http://stackoverflow.com/questions/9032068/how-to-set-a-date-get-a-date-for-datepicker-in-codebehind – Den