altas(ajax)控件(五):日历控件Calendar
非常常见的一个控件
效果如下:
![](http://p.blog.csdn.net/images/p_blog_csdn_net/edisundong/293088/o_Calendar1.bmp)
默认calendar:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
注:需要设置的是
TargetControlID="Date1"。
带格式匹配的Calendar:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
注:需要设置的是
TargetControlID="Date2"。
Format="MMMM d, yyyy"
按钮Calendar:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
注:需要设置的是
TargetControlID=" Date5"。
Format="MMMM d, yyyy"
PopupButtonID="Image1"
好玩的是:日历控件的选择年
![](http://p.blog.csdn.net/images/p_blog_csdn_net/edisundong/293088/o_Calendar21.bmp)
和选择月的界面
![](http://p.blog.csdn.net/images/p_blog_csdn_net/edisundong/293088/o_Calendar22.bmp)