Can anyone recommend a Time Input control for an asp.net web application?
谁能推荐一个asp.net web应用程序的时间输入控件?
It should be able to handle the following items
它应该能够处理以下项目
- Am/Pm
- Am / Pm
- 24 Hour
- 24小时
- client side validation
- 客户端验证
- client side completion (if you start the hour with a 3 then jump to minute)
- 客户端完成(如果您以3开始,则跳转到分钟)
- one textbox (not separate textboxes for hours and minutes, or drop downs)
- 一个文本框
- ability to actually type in the time, not simply pick it
- 能够实际输入时间,而不是简单地选择它
- hint text with time separator ":"
- 提示文本与时间分隔符":"
Other features that would be nice
还有其他不错的功能
- Ability to increase hour or minutes with arrows
- 用箭头增加小时或分钟的能力。
- no need to rewire after a postback
- 不需要在回发后重新连接
Thanks in advance for the help and suggestions!
谢谢您的帮助和建议!
4 个解决方案
#1
3
try this code for time entry
尝试使用此代码进行时间输入
<asp:TextBox ID="txtStartTime" runat="server" Text='<%# Bind("StartTime", "{0:t}") %>'
Width="60px"></asp:TextBox>
<asp:Label ID="lblStartTimeEdit" runat="server" Text="Press 'A' or 'P' to switch AM/PM"></asp:Label>
<cc1:MaskedEditExtender ID="meeStartTime" runat="server" AcceptAMPM="true" MaskType="Time"
Mask="99:99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
ErrorTooltipEnabled="true" UserTimeFormat="None" TargetControlID="txtStartTime"
InputDirection="LeftToRight" AcceptNegative="Left">
</cc1:MaskedEditExtender>
<cc1:MaskedEditValidator ID="mevStartTime" runat="server" ControlExtender="meeStartTime"
ControlToValidate="txtStartTime" IsValidEmpty="False" EmptyValueMessage="Time is required "
InvalidValueMessage="Time is invalid" Display="Dynamic" EmptyValueBlurredText="Time is required "
InvalidValueBlurredMessage="Invalid Time" ValidationGroup="MKE" />
#2
0
Just Visit the link :http://www.obout.com/calendar/calendar_datetimepicker.aspx"
只要访问链接:http://www.obout.com/calendar/calendar_datetimepicker.aspx"
and Your problem will be resolved within seconds
你的问题将在几秒钟内得到解决
#3
0
You can use the Telerik RadTimePicker
你可以使用Telerik RadTimePicker
#4
0
Have you considered looking at a jquery control
您是否考虑过使用jquery控件
- timepicker
- timepicker
or just put a "time" search across all the plugins. I've only used the datepicker but works very well.
或者只是在所有的插件中进行“时间”搜索。我只使用了datepicker,但是效果很好。
#1
3
try this code for time entry
尝试使用此代码进行时间输入
<asp:TextBox ID="txtStartTime" runat="server" Text='<%# Bind("StartTime", "{0:t}") %>'
Width="60px"></asp:TextBox>
<asp:Label ID="lblStartTimeEdit" runat="server" Text="Press 'A' or 'P' to switch AM/PM"></asp:Label>
<cc1:MaskedEditExtender ID="meeStartTime" runat="server" AcceptAMPM="true" MaskType="Time"
Mask="99:99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
ErrorTooltipEnabled="true" UserTimeFormat="None" TargetControlID="txtStartTime"
InputDirection="LeftToRight" AcceptNegative="Left">
</cc1:MaskedEditExtender>
<cc1:MaskedEditValidator ID="mevStartTime" runat="server" ControlExtender="meeStartTime"
ControlToValidate="txtStartTime" IsValidEmpty="False" EmptyValueMessage="Time is required "
InvalidValueMessage="Time is invalid" Display="Dynamic" EmptyValueBlurredText="Time is required "
InvalidValueBlurredMessage="Invalid Time" ValidationGroup="MKE" />
#2
0
Just Visit the link :http://www.obout.com/calendar/calendar_datetimepicker.aspx"
只要访问链接:http://www.obout.com/calendar/calendar_datetimepicker.aspx"
and Your problem will be resolved within seconds
你的问题将在几秒钟内得到解决
#3
0
You can use the Telerik RadTimePicker
你可以使用Telerik RadTimePicker
#4
0
Have you considered looking at a jquery control
您是否考虑过使用jquery控件
- timepicker
- timepicker
or just put a "time" search across all the plugins. I've only used the datepicker but works very well.
或者只是在所有的插件中进行“时间”搜索。我只使用了datepicker,但是效果很好。