Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including an ASP page

Status
Not open for further replies.

theevilone

IS-IT--Management
Aug 19, 2001
52
GB
Hi,

Is it possible to include an ASP/VBScript page within a Coldfusion page. This would save me having to rewrite the ASP page into a Coldfusion page, something I would like to avoid.

Thanks,
Ravi
 
Well... I don't believe so, no.

You could do something like:
Code:
<CFHTTP url=&quot;[URL unfurl="true"]http://mydomain.com/mypath/asppage.asp&quot;[/URL] method=&quot;GET&quot;>
</CFHTTP>

<CFOUTPUT>#CFHTTP.FileContent#</CFOUTPUT>

which would, in effect, grab the asp page, process it, and put the result into the FileContent variable. But CFHTTP can be notoriously slow and prone to lag.

Better to just bite the bullet and convert everything to ColdFusion. You'd get much better performance and maintainability. And, in reality, it really shouldn't take that long.

-Carl
 
Thanks Carl. Yes, I think converting the ASP page to Coldfusion is the right way to go.

Ravi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top