Thank you Wayne. Your help is much appreciated.

I got the PreExecute to work with a Hello World asp script. Thanks for
your information on the configuration settings. I can't seem to find
any information about this in the RedDot documentation that I was
provided. Anyway, I will learn as I go.

I think I understand how it is working now. I am going to give it a
whirl with my actual content classes.

Once again, thanks for all your help.

On Oct 16, 3:50 pm, Wayne Bouwmeester <[EMAIL PROTECTED]>
wrote:
> It will take some getting used to.
> If you're just using asp for some simple conditional logic, I'd
> suggest learning how to use render tags instead.
> They are much more efficient from a processing perspective.
>
> To make your PreExecute blocks work, you'll need to do a few things.
> Add asp as an "eligible suffix"  in Project -> General settings
> Then select it for "scripting for active templates" in your project
> variant.
> I'd suggest trying to get a <% response.write "Hello World" %> to work
> first, so you know PreExecuting works, then try to fix your errors/
> syntax errors.
>
> RedDot builds your page, saves it to the server in a temp file, then
> executes it as an asp page and gives you the results. So you need to
> think about your template as a method to kick out asp that will be
> processed.
> If you want to see what code is generated, just remove the PreExecute
> tags and view the source of the resulting page.
>
> for lists, you'll want to keep the PreExecute tags outside the list
> block markers, or you end up with one set for each item in the list.
> Remember that whatever is between the list block markers is generated
> for each page on the list.
> Also, don't try to break up an if...then...else structure into
> multiple PreExecute tags.
>
> If you have syntax errors in your code, you'll get blanks, so I
> suggest going from a known working state and add code until it breaks.
> There's also a debugging plugin you can download from the community
> site.
>
> Good luck.
>
> On Oct 16, 4:14 pm, bushland25 <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thank you Wayne for your response.
>
> > I am a little new at this and was not aware that RDExecute was for
> > SmartEdit mode only. I went through my content class template (for the
> > contained page) and added the PreExecute block tags everywhere that I
> > needed to execute ASP. Instead of a single tag, I encapsulated each
> > ASP code block inside the tags. Now, I get blank sections for every
> > part of the page that the ASP runs. I also have elements and block
> > marks for lists inside these asp blocks. Do you think that I am mixing
> > RedDot logic and ASP logic and expecting them to work? Does the ASP
> > code run before any of the RedDot functions for lists, etc. are
> > executed?
>
> > On Oct 16, 2:42 pm, Wayne Bouwmeester <[EMAIL PROTECTED]>
> > wrote:
>
> > > A couple things to check:
> > > 1. Have you nested open/close PreExecute tags? i.e. opened one before
> > > closing an already open one?
> > > 2. Are you mixing your asp <% %> tags incorrectly? i.e. opening a
> > > block of asp inside the container when one is already open?
> > > e.g.
> > > <%
> > > some statements
> > > con_YourContainer
> > > %>
> > > where con_YourContainer has some code:
> > > <%
> > > some statements
> > > %>
>
> > > 3. are you making the distinction in your mind between PreExecute and
> > > RDExecute?
> > > If your page works in Smart Edit but not when you publish out, it's
> > > because you need to wrap your asp in PreExecute blocks.
> > > RDExecute is only for SmartEdit - the Page Builder won't pre-exeucte
> > > it.
>
> > > Where are your PreExecute block marks? Top and bottom of your main
> > > template, or open/closed in several places within your code?
>
> > > Wayne.
>
> > > On Oct 16, 12:20 pm, bushland25 <[EMAIL PROTECTED]> wrote:
>
> > > > I publish all my files as HTML as this is a requirement for me.
> > > > However, I have some classic ASP inside a page that is placed in a
> > > > container. The code in containing pages run just fine, but the code in
> > > > the contained page does not execute and gets published in the HTML
> > > > file. I have the RDExecute=asp entry at the top of both the containing
> > > > content class and the contained content class. I would appreciate any
> > > > help that can be provided.
>
> > > > Thanks!- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to RedDot-CMS-Users@googlegroups.com
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