Change color of text [Resolved]

Posted by Oswaldlily under ASP.NET on 4/23/2013 | Points: 10 | Views : 1316 | Status : [Member] | Replies : 1
lbl.Text = "Not validated" + txtBox.Text "and" +Session["id"].Tostring();

Here txtBox.Text and Session["id"].Tostring() shd come in different color..
hw to do this




Responses

Posted by: Gaur1982 on: 4/23/2013 [Member] Starter | Points: 50

Up
0
Down

Resolved
lbl.Text = "Not validated" + "<span style='color:red;'>" + txtBox.Text + "</span> and <span style='color:green;'>" +Session["id"].Tostring() + "</span>"; 


Here txtBox.Text and Session["id"].Tostring() comes in different color..
Try this.... or post here full code or descriptive question....

Gaurav Agrawal
http://www.planetofcoders.com/

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response