.NET------ 页面文本输入

普通文本框  asp:TextBox 

前面的

<tr>
<td width="20%" align="right" bgcolor="#F5F5F5">备注:</td>
<td align="left" bgcolor="#FFFFFF" colspan="3">
<asp:TextBox onmouseout="checkTextHtml(this)" MaxLength="127"  ID="tbRemark" runat="server"  width="100%"></asp:TextBox>
</td>
</tr>

后面赋值时

this.tbRemark.Text = gbaoming_jiankang.Remark.ToString();//备注

展示时的控制

       this.tbRemark.ReadOnly = true;
            this.tbRemark.Attributes.Add("style", "color:#888888;");//备注
原文地址:https://www.cnblogs.com/obge/p/13084057.html