Last post Dec 21, 2018 04:56 PM by davidmwier
Dec 21, 2018 02:38 PM|davidmwier|LINK
Here's the code I'm trying, which populates a gridview
DataRow row = gvLegend.NewRow();
row = "<b>Department:</b> " + gdepartmentName ;
row = imgLegend.ImageUrl = "~/Images/green.png";
row shows as:
<b>Department:</b> CARDIOLOGY (2020))
I've tried the Encode and Decode methods - it never shows the HTML like it should. I know I've done this before ---- What am I missing?
Dec 21, 2018 04:56 PM|davidmwier|LINK
Found the answer - this was in code behind.
What you also need to do is to set the BoundField htmlencode property to false