如何限制强制输入文本框 [英] How to restrict maual entry into textbox
本文介绍了如何限制强制输入文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个文本框和一个日历控件.当我在日历控件中选择日期时,它会显示在文本框中
但我不希望任何人都可以在文本框中输入日期.仅应通过压光机控制数据输入.
这是一个Web应用程序.
谢谢
Hi all,
I have a text box and a calender control.When I select date in calender control then it is displayed in textbox
but I don''t want that anyone can type date in textbox. Only through calender control data should be entered.
This is a web application.
Thanks
推荐答案
设置
Hi,
Set
TextBox.ReadOnly =true
从属性窗口或页面加载事件中
from properties window or in pageload event
使文本框成为 ^ ]或 ^ ]
Make the Textbox ReadOnly[^] or Disabled[^]
这篇关于如何限制强制输入文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文