In asp there is no isDefined. All form and url variables return an empty string if they do not exist. You can try to loop through the collection, but that is no guarantee.
File exists requires you to open up a File System Object. The best docs I have seen are Microsoft Docs: http://makeashorterlink.com/?X17953901 Something else to note, in ASP includes are included before compiling. > -----Original Message----- > From: Eric Dawson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 04, 2002 10:02 AM > To: CF-Community > Subject: No patience - no ASP documentation - need ASP code > > 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
