Alas.. it doesn't..


Hello.asp
================
<% response.write("Hello World") %>


Hello.cfm
================
<CFOUTPUT>#getPageContext().include("Hello.asp")<CFOUTPUT>


Sadly only outputs:
<% response.write("Hello World") %>


No Parsing done...  


Jeff Garza
  _____  

From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 27, 2003 7:50 AM
To: CF-Talk
Subject: Re: how to parse asp using coldfusion?

Theoretically, the GetPageContext.include() function could parse Asp as it
would
be calling the Asp outside of the CF page context. It's worth an experiment.

> CF cannot parse ASP. It will just treat it as plain text.
>
>
>   _____
>
> From: cf coder [mailto:[EMAIL PROTECTED]
> Sent: 27 November 2003 14:30
> To: CF-Talk
> Subject: how to parse asp using coldfusion?
>
>
> Hi everybody, Can somebody tell me why when I call an
> asp file using the cfinclude tag, the browser renders
> asp without parsing it when I view the source?
> The asp code shows up in the source when I actually
> expect it to parse the asp and display the results
> returned by the asp in html.
>
> here is the cfm code:
>
> <cfinclude template="userdetails.asp">
>
> asp code:
>
> <%
>   if ((session("user.loggedin") <> "TRUE"))
>    Response.write "I want to see this on the browser"
>    end if
> %>
>
> I would appreciate your help
> cf coder
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/ <http://companion.yahoo.com/>
>   _____
>
>
>
  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to