如何避免光标在日历扩展器的文本框上 [英] How to avoid cursor on textbox of calender extender

查看:53
本文介绍了如何避免光标在日历扩展器的文本框上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在下面的代码中,我无法避免文本框6内的光标闪烁。该TB附有压延机扩展器。应该只允许用户选择TB中填写

的日期。但在此代码中,它还允许用户输入一些数据。如何在TB6内避免这个光标。



In the following code I am unable to avoid the flicker of cursor inside the textbox6. This TB is attached with a calender extender. The user should be allowed only to select the date for filling
in the TB. But in this code it also allows the user to enter some data. How to avoid this cursor inside TB6.

<asp:TextBox ID="TextBox6" runat="server"    TabIndex="13" AutoPostBack="True" OnTextChanged="TextBox6_TextChanged"

style=" z-index: 1;top: 124px; left: 225px; position: absolute; height: 18px; width: 148px"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server"  TargetControlID="TextBox6"

Format="yyyy/MM/dd"> </asp:CalendarExtender>

推荐答案

将textBox设为
readonly=true


这篇关于如何避免光标在日历扩展器的文本框上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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