开发者

How to set contentEditable property in aspx?

I need to make a text开发者_StackOverflow中文版 box related to a calender control readonly. I set the contentEditable property to false. Still it can be edited. Here Readonly property failed to support my solution. Can any one please help me out?

' contentEditable="False" MaxLength="10" />

Thanks in advance


contentEditable="False" 
onKeyPress = "javascript: return false;" 
onPaste = "javascript: return false;"

You can try this one. Here the contentEditable property is browser dependent. So for browsers other than IE

onKeyPress = "javascript: return false;" 
onPaste = "javascript: return false;" 

will do the job

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜