Saturday, June 19, 2010

Making a string bold in ASP.NET

I thought this would require an IFormatProvider, but it's much simpler than that. String.Format will parse HTML tags and display the result:

String.Format("Showing {0} records.", totalItems);

No comments: