普通文本框  asp:TextBox 

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

 

前面的

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

<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>

后面赋值时

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

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

展示时的控制

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

       this.tbRemark.ReadOnly = true;
            this.tbRemark.Attributes.Add("style", "color:#888888;");//备注

 

相关文章: