| Stefan Goßner [MSFT] 2006-12-19, 1:19 pm |
| Hi Matt,
never use DataSource.RawContent:
http://blogs.technet.com/stefan_gos.../24/119546.aspx
In addition: it seems that you have a custom placeholder control in place
that escapes the content to allow special tags to be saved in a placeholder
control.
You need to unesacpe the content by changing "~GT~" to "<" and "~LT~" into
">"
Cheers,
Stefan
"Matt.Whitby" <matt.whitby@gmail.com> wrote in message
news:1166289757.747895.308090@73g2000cwn.googlegroups.com...
> Hello all.
>
> I'm using the following line to grab some data from a pla eholder.
>
> string Content =
> pst.Placeholders["rphTitle"].Datasource.RawContent.ToString();
>
> But rather than just getting the text: "Life during the Blitz"
>
> It's getting surrounded by additional characters:"~LT~p
> align="left"~GT~Life during the Blitz~LT~br /~GT~~LT~br
> /~GT~~LT~/p~GT~"
>
> Should I not be using the RawContent method to get the data?
>
> All help gratefully received.
>
|