如何实现文本框的日历控制? [英] how to implement calender control for textbox?

查看:116
本文介绍了如何实现文本框的日历控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要有关压光机控制的帮助,这是当我单击文本框时,将显示压光机,然后在选择要传递给texbox的日期之后.如何

i need help for calender control thet is when i click the textbox the calender will display then after selecting the date that will passed to texbox .how it is possible

推荐答案

将一个文本框作为txtDateTo和一个Ajax的日历扩展器
并使用它并根据您的选择设置格式.

Take a text box as txtDateTo and a calender extender of Ajax
and use like it and set format as per your choice.

<pre lang="xml"><cc1:CalendarExtender ID="txtDateTo_CalendarExtender" runat="server"
                    Enabled="True" Format="dd/MMM/yyyy" TargetControlID="txtDateTo"></cc1:CalendarExtender>


您可以使用AjaxToolkit日历扩展程序,请参考 [ ^ ]

希望对您有所帮助:)
you can use AjaxToolkit calendar extender refer This[^]

hope it helps :)


Mohd wasif建议了正确的解决方案.您有两个选择.
1-使用AJAX Calender Extender控件
2-您会发现许多免费的JavaScript日期时间选择器.
看看 http://www.codeproject.com/KB/user-controls/ASPNET_DateSelector.aspx
Mohd wasif Suggested the right solution. you have two options.
1- Use AJAX Calender Extender control
2- You will find many javascript datetime pickers free.
Have a look at http://www.codeproject.com/KB/user-controls/ASPNET_DateSelector.aspx


这篇关于如何实现文本框的日历控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆