B
Ben
Hi,
I have some alert data from our monitoring system i want to show in a
gridview's cell.
An alert's data has mixed content... for example:
"
<B>Alert Name:</B> Some Alert Name
<BR><B>Alert Detail:</B> Detail of alert: failed to run this script
<SCRIPT>alert('hi')</SCRIPT>
"
In order for it to parse the <B> & <BR> for each of the field names, I
need to run the cell's text through HTMLDecode, but when I do that, it
also decodes the <SCRIPT> as well and runs it...
I run the HTMLDecode on RowDataBound event, but I also tried to run it
when I prepare the data column and then I have control and can decode
only the field names.... but it doesn't work, the cell displays the
tags 'as is', without parsing them.
Anyone has ideas?
Thanks!
I have some alert data from our monitoring system i want to show in a
gridview's cell.
An alert's data has mixed content... for example:
"
<B>Alert Name:</B> Some Alert Name
<BR><B>Alert Detail:</B> Detail of alert: failed to run this script
<SCRIPT>alert('hi')</SCRIPT>
"
In order for it to parse the <B> & <BR> for each of the field names, I
need to run the cell's text through HTMLDecode, but when I do that, it
also decodes the <SCRIPT> as well and runs it...
I run the HTMLDecode on RowDataBound event, but I also tried to run it
when I prepare the data column and then I have control and can decode
only the field names.... but it doesn't work, the cell displays the
tags 'as is', without parsing them.
Anyone has ideas?
Thanks!