Microsoft Content Management Server - Odd characters appearing (possibly RTF)...

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > December 2006 > Odd characters appearing (possibly RTF)...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Odd characters appearing (possibly RTF)...
Matt.Whitby

2006-12-16, 1:16 pm

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.

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.
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com