Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manipulating DataGrid DataItems

Status
Not open for further replies.

gagz

Programmer
Nov 21, 2002
333
US
I have a datagrid that uses ItemTemplates, in which my data returned from sql are written out with <%#Container.DataItem(&quot;blah&quot;)%> statements. I want to htmlencode a couple of the items, so i tried <%#Server.HtmlEncode(Containter.DataItem(&quot;blah&quot;))%>, 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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top