Hi Bobby,

If you are preexecuting C# already, then you might want to use the
literal control in C# mentioned in the comments here

http://www.reddotcmsblog.com/how-to-manage-quotes-placeholders-and-pre-execute-using-vbscript-and-reddot-cms-placeholders

For rendertag escape, you can try what reddotrich mentioned.

http://groups.google.com/group/reddot-cms-users/browse_thread/thread/7f733847e459c9c8

Side note:
For following rendertag has a couple of potential problems
<%
text = "<%!!
Store:testList.Elements.GetElement(anc_article).Value[Int:
0].Elements.GetElement(txt_text).GetHtml() !!%>"
%>

1. A page must be connected to anc_article for it to work.  A
reference would not work.
2. If a page is connected to multiple locations with multiple
publication packages, then the page would be published multiple times.
3. If anc_article has nothing connected, would cause potential error
due to NULL.Elements.GetElement(txt_text).GetHtml(), unless rendertag
has value checking / exception handling in the internal code.  If not,
potential server performance degradation.
4. Due to a rendertag caching issue, in the event of txt_text update,
the rendertag will not be notified of the update and continues to
display the old txt_text content.

Is it possible to use AJAX to get the text from the other page?

On Nov 24, 5:26 am, bobbykjack <[email protected]> wrote:
> Hi all,
>
> I'm trying to pull through content from one page to another. Since
> there's more than one level of referencing/connecting between the two,
> I need to use render tags.
>
> I have something akin to the following:
>
> <!IoRangePreExecute>
> <%
> text = "<%!! Store:testList.Elements.GetElement(anc_article).Value[Int:
> 0].Elements.GetElement(txt_text).GetHtml() !!%>"
> %>
> <!/IoRangePreExecute>
>
> which is all well and good, except for when txt_text contains a double
> quote, in which case this expands to:
>
> <!IoRangePreExecute>
> <%
> text = "this is an "example" of the problem"
> %>
> <!/IoRangePreExecute>
>
> which is obviously a problem; those double-quotes need to be escaped
> as "" in vbscript. So:
>
> a) Is there an alternative to GetHtml() that will pre-escape double-
> quotes?
>
> b) Failing that, can anyone think of a good workaround? As far as I
> can tell, vbscript lacks a heredoc syntax, which is a bit of a
> problem ...
>
> Thanks everyone,
>
> - Bobby

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to