Fernando Campos
|
| Posted: 08/28/2002, 8:44 PM |
|
Hello.
I'm working at CCS Tutorial and at page 55 there's an Event to change the color of a Label to "blue" if the name assigned is the same of the LoginID.
The script is working OK, but at Live Page I see the html code instead of the result wanted
The script is:
If tasks.Recordset.Fields("user_id_assign_to") = Session("UserID") then
tasks.user_id_assign_to.Value = "<b><font color=""blue"">"&tasks.user_id_assign_to.Value&"</font></b>"
End If
The result is:
Assigned To
David Snyder
Stefan Fey
<b><font color="blue">Li Jang</font></b> (here is the error)
Pablo Sanchez
Rob McDonald
Could some one help me?
thank you
|
|
|
 |
Mehmet Ozdemir
|
| Posted: 08/28/2002, 9:54 PM |
|
I Haven't worked thru any of the tutorials, but I'm guessing that you need to set the "Content" property of the Label to "HTML" eg:
If tasks.Recordset.Fields("user_id_assign_to") = Session("UserID") then
tasks.user_id_assign_to.HTML = True
tasks.user_id_assign_to.Value = "<b><font color=""blue"">"&tasks.user_id_assign_to.Value&"</font></b>"
End If
of just set the property in the designer.
|
|
|
 |
M Prinke
|
| Posted: 01/09/2003, 7:37 AM |
|
This works. Thanks
|
|
|
 |
|