比较ASP.Net中的验证器和Javascript [英] Compare validator and Javascript in ASP.Net

查看:101
本文介绍了比较ASP.Net中的验证器和Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有两个日期字段,例如起始日期"和截止日期".为了比较它们,我们使用了比较验证器".

我的问题是,对于日期比较,我们有2个函数,例如1.内置的Compare Validator和2.用户定义的Javascript函数.因此,在执行代码时,哪个函数会首先触发内置函数或用户定义的函数.

请澄清.


感谢Adavance.
Ramakrishna

Hi,

I have Two Date Fields like From Date and To Date. For comparision of them, we have used Compare Validator.

My Question is, for Comparision of dates we have 2 functions like 1. Inbuilt Compare Validator and 2. user defined Javascript function. So while executing the code which function will fire first either inbuilt or user defined.

Please Clarify.


Thanks in Adavance.
Ramakrishna

推荐答案

由于我不太了解您的内置验证器,因此我不能多说,但我希望它在服务器端进行. JavaScript在客户端执行,因此在您遇到的问题中,用户定义比较首先执行.
Since I don''t know much about your inbuilt validator I cannot say much about it, but I hope it take place on server side. JavaScript executing on client side, so in your question user define comparison execute first.


这篇关于比较ASP.Net中的验证器和Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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