I have this code in C#/ASP.net
foreach (String projectType in ProjectsByProjectType.Keys)
{
HtmlTableRow trh = new HtmlTableRow();
HtmlTableCell tdProjectType = new HtmlTableCell();
tdProjectType.InnerHtml = projectType;
trh.Controls.Add(tdProjectType);
tableLocal.Controls.Add(trh);
}
When this line runs
tdProjectType.InnerHtml = projectType;
I'd like the text within the innerHTML
to be in a bold font type (so take the string referenced by 'projectType' and make it bold). How do I do this?
You can try