Ajax日期比较 [英] Ajax Date Comparison

查看:76
本文介绍了Ajax日期比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ajax日历扩展器,当我单击文本框时,会出现ajax日历,而当我单击日期时,该日期将出现在文本框中,并且日历会消失.

问题是,我要验证该日期,用户不能选择小于特定日期,大于特定日期的日期



详细说明:

我有两个日期,FromDate和ToDate
FromDate必须小于ToDate,ToDate必须大于FromDate等.


请给我一个解决方案.

I am using Ajax calendar extender, when i clicked on textbox, ajax calender will appears and when i click on a date, the date will appear in the textbox and calendar dissappears.

The question is, I want to validate that date, user can''t select a date less than a particular date, more than a particular date



In detail:

I have two dates, FromDate and ToDate
FromDate must be less than ToDate, ToDate must be greater than FromDate etc


Kindly give me a solution to do this.

推荐答案

尝试使用google,您将在下面的链接中被大量答案:

1. http://www.ajaxlines.com/ajax/stuff/article/aspnet_ajax_calendar_extender_and_past_date_validation_javascript.php > [^ ]

2. http://codingform.blogspot.com/2009/07/ajax-calendarextender- date-validation.html [ ^ ]

3. http://www.dotnetcurry.com/ShowArticle.aspx?ID=149&AspxAutoDetectCookieSupport= 1 [ ^ ]


希望对您有所帮助.
Try google and you will be flooded with answers on links below:

1. http://www.ajaxlines.com/ajax/stuff/article/aspnet_ajax_calendar_extender_and_past_date_validation_javascript.php[^]

2. http://codingform.blogspot.com/2009/07/ajax-calendarextender-date-validation.html[^]

3. http://www.dotnetcurry.com/ShowArticle.aspx?ID=149&AspxAutoDetectCookieSupport=1[^]


Hope that helps.


我搜索了"Ajax日历扩展程序验证",并得到55,300个结果.

第一个
I searched for "Ajax calendar extender validation" and got 55,300results.

The very first page[^] has so many links which answers your question.


这篇关于Ajax日期比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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