ASP <%Response.write(Variable)%>

17 views
Skip to first unread message

JJB

unread,
Apr 22, 2009, 2:46:17 PM4/22/09
to RedDot CMS Users
Hi,

I have a piece of code in my existent website that I trying to get
into the CMS.

The line that I have an issue with is:

<meta http-equiv="Refresh" content="1;URL=<%Response.write(strFileName)
%>">

The CMS tidy published the line as:
<meta http-equiv="Refresh" content="10;URL=&lt;% Response.write
(strFileName)%&gt;" />

I need the value of strFileName to be written in URL. What is
happening on this page is it is check the user's browser compatibility
with our online applications. The compatibility code works fine. If
they passed the check, the meta refresh will forward them to requested
application.

I added <!IoRangePreExecute> around the <%Response.write(strFileName)
%>. My page are written in asp and <%Response.write(strFileName)%>
works outside the quotes.

Any thoughts?

Thanks,
Jamie

Jason Johnstone

unread,
Apr 22, 2009, 3:01:20 PM4/22/09
to RedDot-C...@googlegroups.com
Maybe try writing out the whole line via ASP:
<%="<meta http-equiv=""Refresh"" content=""1;" & <stfFileName & """>" %>

--
Jason

Jason Johnstone

unread,
Apr 22, 2009, 3:02:25 PM4/22/09
to RedDot-C...@googlegroups.com
Oops, remove the extra '<' just before stfFileName

JJB

unread,
Apr 22, 2009, 4:16:29 PM4/22/09
to RedDot CMS Users
That works!!! Thank you so much, I spend the day trying.

On Apr 22, 4:02 pm, Jason Johnstone <jljohnst...@gmail.com> wrote:
> Oops, remove the extra '<' just before stfFileName
>
> On Wed, Apr 22, 2009 at 2:01 PM, Jason Johnstone <jljohnst...@gmail.com>wrote:
>
> > Maybe try writing out the whole line via ASP:<%="<meta
> > http-equiv=""Refresh"" content=""1;" & <stfFileName & """>" %>
>
> > --
> > Jason
>

Jason Johnstone

unread,
Apr 22, 2009, 4:20:19 PM4/22/09
to RedDot-C...@googlegroups.com
No problem. I had almost the exact same issue earlier in the week.

JJB

unread,
Apr 23, 2009, 8:12:51 AM4/23/09
to RedDot CMS Users
Thanks again Jason.

In my haste last night, I didn’t notice a syntax error. It worked fine
in FF but not IE. It was missing url.

This works in both browser.

<%="<meta http-equiv=""Refresh"" content=""5;url=" & strFileName & """/
>" %>


On Apr 22, 5:20 pm, Jason Johnstone <jljohnst...@gmail.com> wrote:
> No problem. I had almost the exact same issue earlier in the week.
>
Reply all
Reply to author
Forward
0 new messages