65.9K
CodeProject 正在变化。 阅读更多。
Home

定制日历 Web 服务器控件

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.29/5 (7投票s)

2006年4月12日

CPOL
viewsIcon

48950

downloadIcon

543

该定制日历 Web 服务器控件使用 .Net 1.1 版本开发。

Sample Image - calender.jpg

引言

该定制日历 Web 服务器控件使用 .Net 1.1 版本开发。可以轻松将其添加到工具箱中的其他 Web 控件下方。像使用普通 Web 服务器控件一样,将控件拖放到网页上。用户可以设置控件的许多外观属性。

指尖上的日历功能 与需要手动创建日历、执行日期计算和分配事件的其他脚本语言相比,此日历控件带来了一股清新的空气。如果您的网站需要用户输入日期,则日历控件提供了一种创建图形化日期选择工具的简便方法,从而改善用户体验并减少错误输入。

日历默认事件

Private Sub Hitcalender1_hdateselected(ByVal sender As System.Object, ByVal day As Integer, ByVal month As Integer, ByVal year As Long, ByVal caldate As Date, ByVal e As System.EventArgs) Handles Hitcalender1.hdateselected

TextBox1.Text = caldate.ToShortDateString

End Sub

事件 hdateselected 返回 sender、day、month、year、date

作为 postback 触发时的输出

请通过电子邮件提供反馈:hitesh_techno@rediffmail.com

© . All rights reserved.