Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.60/5 (5 votes)
See more:
hi

i am srinivas. i am storing string value into session.

how can i change color in string value


string createuser = Convert.ToString(Session["createuser"]);



i want

Createuser - "Session value";

i want session value red color

please help me
Posted
Updated 23-Dec-10 18:19pm
v3
Comments
Dr.Walt Fair, PE 24-Dec-10 0:32am    
Where will the string be displayed? That's where you need to look to find out how to set its display characteristics, such as color.
Toli Cuturicu 24-Dec-10 12:57pm    
Absurdity!
By the way, what color does the number 14 have? Is it blue? What about letter Y. It must be green!

1 solution

You seem very confused. A string is simply an array of characters, more pointedly a memory address, it does not store any information about color, fonts, etc. Wherever the string is rendered, a web page, Windows form, printed document, etc is where the color is specified.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900