mixed HTML content in GridView

mixed HTML content in GridView

am 04.01.2008 22:22:26 von 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:

"
Alert Name: Some Alert Name

Alert Detail: Detail of alert: failed to run this script

"

In order for it to parse the &
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
> "
>
> In order for it to parse the &
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 ";
scriptMgr.RegisterStartupScript(csType,"MyAlert", script);


Regards
JIGNESH




"JIGNESH" wrote:

> Place the code to get more insight on what you are exactly doing.
>
> Regards
> JIGNESH
>
> "Ben" wrote:
>
> > 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:
> >
> > "
> > Alert Name: Some Alert Name
> >
Alert Detail: Detail of alert: failed to run this script
> >
> > "
> >
> > In order for it to parse the &
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 ";
> =A0 =A0 =A0 =A0 scriptMgr.RegisterStartupScript(csType,"MyAlert", script);=

>
> Regards
> JIGNESH
>
>
>
> "JIGNESH" wrote:
> > Place the code to get more insight on what you are exactly doing.
>
> > Regards
> > JIGNESH
>
> > "Ben" wrote:
>
> > > 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:
>
> > > "
> > > Alert Name: =A0Some Alert Name
> > >
Alert Detail: =A0Detail of alert: failed to run this script=

> > >
> > > "
>
> > > In order for it to parse the &
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