如果文本框值处于“只读”属性中,则如何对其进行文本处理为True [英] How to text for text box value if it is in Read-only property is True

查看:94
本文介绍了如果文本框值处于“只读”属性中,则如何对其进行文本处理为True的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实现了Java脚本中的一些逻辑,我得到了一些价值,这个价值我直接保存在一个文本框中,但代码背后我没有得到那个价值





i将TextBox属性保持为Read Only = True

I Implemented for some logic in Java script and i getting some value, that value i kept in one textbox directly but code behind i did't get that value


i kept TextBox property as Read Only = True

推荐答案

尝试从后面的代码中只读取字段:



TextBoxName.Attributes.Add(readonly,readonly);
Try making the field readonly from code behind:

TextBoxName.Attributes.Add("readonly", "readonly");


这篇关于如果文本框值处于“只读”属性中,则如何对其进行文本处理为True的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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