Dear Sara,
It uses the property Text of the Controls, for examples, with a label named lblExample:
private void Page_Load(object sender,System.EventArgs e)
{
lblExample.Text="<h1>This <font color='red'>is</font> a boy</h1>";
}
.......................
Daniel Andrade
MCP (Microsoft Certificated Professional)
Developer Microsoft 4 stars
Guayaquil-Ecuador
www.gratisweb.com/dotnet
> How can I display a text in different color in one line by using
> mobilecontrol?
[quoted text clipped - 5 lines]
>
> Sara T.
Sara T. - 05 Oct 2004 16:28 GMT
I try to use your technique but it doen't work. The label on mobileform will generate the text as following on the screen:
<h1>This <font color='red'>is</font> a boy</h1>
And when I see in View Source on IE, it is translated to:
<h1>This <font color='red'>is</font> a boy</h1>
Eventhough I change the label control to textvuew control, it doesn't work too.
Sara T.
"NetDragonKing (NDK)" <dandrade@fiec.espol.edu.ec> wrote in message news:Onb8StJqEHA.4008@TK2MSFTNGP14.phx.gbl...
Dear Sara,
It uses the property Text of the Controls, for examples, with a label named lblExample:
private void Page_Load(object sender,System.EventArgs e)
{
lblExample.Text="<h1>This <font color='red'>is</font> a boy</h1>";
}
.......................
Daniel Andrade
MCP (Microsoft Certificated Professional)
Developer Microsoft 4 stars
Guayaquil-Ecuador
www.gratisweb.com/dotnet