如何在AJAX Calender Extender文本框中验证文本? [英] How to validate text in AJAX Calender Extender Textbox?

查看:79
本文介绍了如何在AJAX Calender Extender文本框中验证文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用AJAX Calender Extender输入日期.现在,我想手动验证在文本框中输入的文本.我该怎么做?由于某些其他原因,我无法将文本框设置为只读,从而限制了用户仅从日历图标中选择日期.

在此先谢谢您.

Hello All,

I am using AJAX Calender Extender to enter a date. Now, I want to validate the text entered in the textbox manually. How can I do it? For some other reason, I can not make the textbox read-only so that I restrict the user to select the date from the calender icon only.

Thanks in advance.

推荐答案

使用 CompareValidator控件 [ ^ ].将其Type属性设置为日期".

干杯!
安库尔
Use a CompareValidator Control[^] with it. Set it''s Type property to ''Date''.

Cheers!
Ankur


这篇关于如何在AJAX Calender Extender文本框中验证文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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