C# asp.net 中的日期选择器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12152719/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Date picker in asp.net
提问by Paal Waan
I need to create date picker for my website. Can anyone here suggest me how to do it? Did goggling but I am looking for something simple and easy to be implement. Many thanks
我需要为我的网站创建日期选择器。这里有人可以建议我怎么做吗?护目镜,但我正在寻找简单易行的东西。非常感谢
回答by Renju Vinod
回答by Vishal Suthar
You can use Ajax Date Picker Ajax Date Pickerand Also you can use Jquery Date Picker Plug in for that DateTimePicker using jQuery Plugin
您可以使用 Ajax 日期选择器Ajax 日期选择器,也可以使用 Jquery 日期选择器插件使用 jQuery 插件为该DateTimePicker 使用
回答by Cdeez
Date Picker Server Controlshould help you out.
日期选择器服务器控件应该可以帮助您。
回答by jeneous
code on value changed event of datetimepicker1_valuechanged(..........).
datetimepicker1_valuechanged(.........) 值更改事件的代码。
{
dateTimePicker1.Text = dateTimePicker1.Value.ToString();
}
and if u want the value selected in datetimepicker in a textbox. then drag a textbox above the datetimepicker and do this coding..
并且如果您想要在文本框中的 datetimepicker 中选择的值。然后在日期时间选择器上方拖动一个文本框并执行此编码..
{
Textbox1.Text = dateTimePicker1.Value.ToString();
}
回答by Adil Mammadov
You can use Ajax Calendar extender. See this official web siteto download for free and for tutorials.
您可以使用Ajax 日历扩展程序。请参阅此官方网站以免费下载和获取教程。

