Hey, it seems like no one ever faced this problem, but anyway, here goes
nothing.
I actually sorted it out - I just had to escape with backslashes rde-dm
tags.
But now I have a slightly different problem now - I cannot compare, nor
get passed string length, as RedDot parses C#, and *then* rde-dm tags,
etcetera, etcetera.
<!IoRangePreExecute>
<%
string getCat = "<rde-dm:attribute mode=\"read\" attribute=\"cat\"
source=\"request\" />";
string getYear = "<rde-dm:attribute mode=\"read\" attribute=\"year\"
source=\"request\" />";
Response.Write("cat: " + getCat + "<br /> \nyear: " + getYear + " and
getYear length is: " + getYear.Length + "<br />\n");
if (getYear == "2010") {
Response.Write("You nailed it!");
}
else
{
Response.Write("failYear");
}
%>
<!/IoRangePreExecute>
This stealed allready two days for me (and dropped 2 lb's, I guess). Who
knew it, that rde-dm tags need to be escaped with backslashes, not
double quotes?
Thanks
Kristaps Karlsons wrote:
> Ok, I found some information about this topic (+ got access to live server).
>
> Here goes the magic:
>
> <!IoRangePreExecute>
> <%
> if (isPreview != true) {
> %>
> <!IoRangeNoRedDotMode>
> <rde-dm:attribute mode="condition" source="request">
> <rde-dm:constraint>
> request:parameter1 EQ 'debug'
> AND request:parameter2 NE ''
> </rde-dm:constraint>
> <rde-dm:if>
>
> this will be visible, if parameter1=debug, and parameter2 is defined
>
> </rde-dm:if>
> </rde-dm:attribute>
> <!/IoRangeNoRedDotMode>
> <%
> }
> %>
> <!/IoRangePreExecute>
>
> ^ It solves almost nothing. It's not dynamic and scalable.
> Is there any way, I can write these values to variable?
>
> Thanks!
>
> On Fri, Sep 11, 2009 at 14:16, Kristaps Karlsons
> <[email protected]> wrote:
>
>> Hi.
>>
>> Has anyone tried this? I have currently access only to dev server
>> (publishing server is not up yet) - and Page.Request.Url.ToString()
>> fails, and silently chops off all given parameters (?param=0¶m=1
>> [..]).
>> I'm developing on RedDot 7.5 - maybe it's some sort of server setting
>> that i need to enable/disable?
>>
>> Thanks in advance for any information
>>
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---