string line="abcd";
response.write(line);
when i execute the line should be displayed in red color
how to achieve it in asp.net
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VikramRank #9,295 · 208 reputationPosted Jun 16, 2010, 3:53 AM EDT
Try this,
string line = "abcd";
string tmp = "<a style='color:Red;'>" + line + "</a>";
response.write(tmp);
Regards,
VIkram