使用csharp验证下拉列表 [英] Validating the dropdown list using csharp

查看:82
本文介绍了使用csharp验证下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设计如下;





ROC下拉列表

ARPA下拉列表





我有一个名为Show的按钮。在上面的下拉列表日期中的两个课程将在那里。我想验证ROC日期是否大于ARPA日期。我想验证是否假设用户在下拉列表中选择日期,如下所示:



ROC 1/4/2013

ARPA 10/4 / 2013



在上述用户中,选择下拉列表中的日期ROC日期小于下拉列表中的ARPA日期。当用户单击显示按钮时,我想按如下方式显示弹出消息:



ROC日期大于ARPA日期。



如何使用csharp执行此操作?请帮帮我。



问候



Narasiman P.



谢谢。

Design as follows;


ROC dropdownlist
ARPA dropdownlist


I have button called Show. In the above for the two courses in the dropdownlist dates will be there. I want to validate ROC Date is greater than the ARPA date. I want to validate if suppose user select the date in the dropdownlist as follows:

ROC 1/4/2013
ARPA 10/4/2013

In the above user select the date in the dropdownlist ROC date is less than the ARPA date in the dropdownlist. When user clicks the Show button, I want to show the popup message as follows:

"ROC Date is greater than the ARPA date."

How can I do that using csharp? Please help me.

Regards

Narasiman P.

Thanks.

推荐答案

您可以使用我们的API本身提供的日期差异。但如果你想用javascript做,那么你需要做更多的工作。





DateTime.Compare方法
You can use date diff which available in our API itself. But if you want to do it with javascript then you need to do little more work.


DateTime.Compare Method


这篇关于使用csharp验证下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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