.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;");//备注

 

posted on 2020-06-11 20:48  obge  阅读(289)  评论(0编辑  收藏  举报