DatePicker控件

in Develop

http://www.dynarch.com/projects/calendar/的javascript日期选择器做了.net下的封装。
效果:

属性:

Theme:日期选择器样式,内置7种。
MinYear:最小年份
MaxYear:最大年份
DisplayTime:是否显示时间
Text:选中的日期值
在.cs中可以用DatePicker.Text来获取
唯一的事件TextChanged,当文本框中的值被更改时触发。

下午在调试时发现无法跟进IPostBackDataHandler.LoadPostData
郁闷了半天,网上查查才知道是当自定义控件中有<input type=”text”时,该Input要有Name属性。
DatePicker.rar (24.95 kb)

3 Comments

3 Comments

  1. 导入了System.ComponentModel命名空间
    为什么输入[assembly:TagPrefix("", "")]中的assembly没有提示呢
    DefaultPropertyAttribute
    BrowsableAttribute
    DescriptionAttribute
    DefaultValueAttribute
    CategoryAttribute
    这些都不会有提示,带Attribute的就不会有提示

  2. 难道可以写成DefaultProperty,都不用后面的Attribute??

  3. 可以省略Attribute

Leave a Reply

Using Gravatars in the comments - get your own and be recognized!

XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>