Easy way to apply URLEncode() to a whole DataTable?

M

MattB

I'm writing a utility page in asp.net that will return raw output from a
database to a datagrid.
I want to be able to see markup tags, so I need to perform a URLEncode() to
all the text before it's displayed.

Can anyone give me a good suggestion for how to do this to a whole DataTable
(or datagrid if that's a better place to do it) that may have any number of
rows and columns?

As I typed this I thought maybe the OnItemDatabound event of the datagrid
would be the right place. Whatcha' think? Thanks!

Matt
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top