在asp.net C#页面后面的代码中更改字体颜色

问题描述:

尊敬的专家!

我正在文本框内使用下面的文本,我需要将此文本的颜色更改为浅灰色.顺便说一下,我用这段文字来搜索记录.

这是代码..,位于asp.net C#
页面后面的代码中

Dear Experts !!

Am using this below text Inside of Textbox, and i need to change the color of this text to light gray Color. By the way i used this text to search the records.

this is the code.., in code behind page of asp.net C#

txtSearch.Attributes.Add("value", "Search HNumber, SId, RoomNo, to Narrow the Results.....");



请谁能建议我该怎么做? ?

谢谢,



Please can anyone suggest me to how to do this ? ?

Thanks,

有关:
TextBox1.Text = "Some content colored";
TextBox1.ForeColor = System.Drawing.Color.LightGray;


TextBox1.ForeColor = System.Drawing.Color.LightGray;