如何使用javascript使用asp.net日历控件 [英] How to use asp.net calendar control using javascript
本文介绍了如何使用javascript使用asp.net日历控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
var selected_Date = document.getElementById(calDOB)。value;
这是我的代码,我想从asp.net日历caontrol中选择日期仅使用javascript
var selected_Date=document.getElementById("calDOB").value;
this is my code, i want to get selected date from asp.net calendar caontrol using javascript only
推荐答案
var Selected_Date = document.getElementById('<%= Control.ClientID%>')。value;
或
var calendarDate ='<%= YourCalendarControlID.SelectedDate%>';
点击此链接
http://forums.asp.net/t/1837759.aspx [ ^ ]
var Selected_Date=document.getElementById('<%= Control.ClientID%>').value;
or
var calendarDate='<%= YourCalendarControlID.SelectedDate %>';
follow this link
http://forums.asp.net/t/1837759.aspx[^]
我建议您退出使用ASP的任何控件。 NET并开始使用Twitter BootStrap,这是一个用于开发灵活的Web应用程序的强大工具。它包括一个日历控件,比Telerik或我见过的任何其他网络工具更加美观和优雅。
Hi, I suggest you quit using any control from ASP. NET and start using Twitter BootStrap which is a powerful tool for developing flexible web applications. It includes a calendar control, much more beautiful and elegant that the one included in Telerik or any other web tool I´ve ever seen.
自定义ASP.NET日历控件 [ ^ ]
希望这个将帮助
Customizing the ASP.NET Calendar Control[^]
Hope this will help
这篇关于如何使用javascript使用asp.net日历控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文