如何设置时间范围,中间时间无法输入 [英] How to set Range in Time, middle time cannot enter

查看:51
本文介绍了如何设置时间范围,中间时间无法输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,
我需要设置时间范围,例如应该相差一小时,假设我输入
9:00,然后10:00,因此无法输入9:45,是否有任何表达式可以解决我的问题?

Hello Sir,
I need to set Range of time like there should be one hour difference, suppose if I will enter
9:00 and then 10:00 so 9:45 cannot be enter is there any expression made or any javascript code that can solve my problem

推荐答案

尝试使用AjaxValidationCustomValidator或对此进行服务器端验证.

问候,
Eduard
Try using CompareValidator or CustomValidator of AjaxValidation or make a Server-side validation of this.

Regards,
Eduard


不要让用户输入第二时间值.通过添加一个小时从第一个时间值进行计算!

干杯!

MRB
Dont have the user enter the second time value then. Calculate it from the first time value by adding one hour!

Cheers!

MRB


检查本文

.NET的时间段库 [
Check this article

Time Period Library for .NET[^]


这篇关于如何设置时间范围,中间时间无法输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆