I have a datagrid that uses ItemTemplates, in which my data returned from sql are written out with <%#Container.DataItem("blah"%> statements. I want to htmlencode a couple of the items, so i tried <%#Server.HtmlEncode(Containter.DataItem("blah")%>, and although it didn't error, it didn't encode it either (as evident by the '&' still in the string. Is there any other way of performing an htmlencode on particular container items before they are used in the itemtemplates?
THANKS.
THANKS.