multiple colors
How can i make my text in multiple color?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Prabhu RajaPosted Jan 19, 2012, 11:51 AM
You can make your text with multiple Colors using Html Color Codes and Span tag like ,
Hello Emmy
Also you can use span tag to color each and every character in a string.
you can Get Most of All Color Codes from my Blog,
http://www.c-sharpcorner.com/Blogs/7220/html-color-codes.aspx
Satyapriya NayakPosted Jan 19, 2012, 7:08 AM
Try this...
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace WebApplication1
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string s1="First text";
string s2="Second text";
Label1.Text += "" + s1 + " " + "" + s2 + "";
}
}
}
Thanks