First. my apologies. I'm not normally this lazy (OK I am) - how would one 
code this in ASP? A decent online ASP reference is all I need.

Second. Good ASP documentation online (or download)

How do you do Isdefined('') and FileExists('') is ASP.

Here is the CF code I want to convert:
<cfif isdefined('url.p')>
   <cfinclude template="store/products/#url.p#.htm">
<cfelseif isdefined('url.c') and isdefined('url.page') >
   <cfinclude template="store/#url.c#_#url.page#.htm">
<cfelseif isdefined('url.c')>
   <cfinclude template="store/#url.c#.htm">
<cfelse>
   <cfinclude template="store/default.htm">
</cfif>

or shorter version
<cfparam name="url.p" default="">
<cfparam name="url.c" default="">
<cfparam name="url.page" default="">

<cfset filename="#url.p##url.c##url.page#.htm">

<cfif filename is not "">
   <cfinclude template="store/#filename#">
<cfelse>
   <cfinclude template="store/default.htm">
</cfif>


=== as an aside.
Does anyone remember a server product called pop!Talk (I think)? When I 
first wanted to build a web application it was the first tag based product I 
saw - and it got me a little excited.




______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to