Textbox属性只读问题 [英] Textbox property Readonly problem
本文介绍了Textbox属性只读问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想让用户看到文本框值。但用户无法更改该值。为此,我把文本框属性
Readonly = false。这有一些问题,例如当用户多次单击文本框并按退格键
然后它转到上一页。如何确保用户不要在文本框中输入任何值。请给我一个清晰的想法。
提前谢谢。
I want to let user see the textbox value. but user can not change the value. For this I put the textbox property
Readonly=false. This has some problem such as when user click a textbox several times and press backspace
then it goes to the previous page. How can I ensure user not to enter any value in the textbox.Please give me a clear idea.
Thanks in advance.
推荐答案
你可以将它设置为readonly并启用为false:
TextBox1.Enabled =false
you can set it to readonly and enabled to false:
TextBox1.Enabled = "false"
这篇关于Textbox属性只读问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文