Bound Data problem < >

J

JezB

I'm binding a DataGrid web-control to data fetched from a database. However
some of my data fields contain text that is within <...> characters - I
notice that everything between the <> is suppressed in the grid. How can I
resolve this ?
 
A

Alex Papadimoulis

HttpUtility.HtmlEncode( value) will replace all the < with &lt; .

Alex Papadimoulis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top