thanks Dave... it appears to be a CF version problem... its throws the error on 
CF5
not CFMX 
>-----Original Message-----
>From: Dave Watts [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 18, 2005 04:47 PM
>To: 'CF-Talk'
>Subject: RE: cfcontent error
>
>> Has anyone seen this type of error with cfcontent before and what 
>> this means: 
>> 
>> Error Diagnostic Information 
>> Context validation error in tag CFCONTENT 
>> 
>> The tag is not correctly positioned relative to other tags in the 
>> template: tag CFCONTENT must have empty content. This means 
>> that there can be no tags or text or even whitespace 
>> characters between the <CFCONTENT> and </CFCONTENT> markers. 
>> 
>> ... 
>> 
>> here's the cfcontent page code: 
>> 
>> <cfquery name="Search_product" datasource="CMS_master"> 
>> select * from contact_detail cd , product_link pl where 
>> cd.contact_id= pl.contact_id and cd.state in (#states#) and 
>> pl.prod_id in (#products#) 
>> 
>> </cfquery> 
>> <cfoutput> 
>> <CFHEADER NAME="Content-Disposition" VALUE="inline; 
>> filename=foo.xls"> <cfcontent file="filename" 
>> type="application/msexcel"> 
>> 
>> <table> ... 
> 
>I haven't seen this specific error, but when you use the CFCONTENT tag, you 
>either specify a file using the FILE attribute or you follow the CFCONTENT 
>tag with the output that you want to display, not both. Also, if you use a 
>literal value of "filename" within the FILE attribute, that won't resolve to 
>an actual file. You have to specify a valid file path. Presumably, in your 
>case you don't want to use the FILE attribute at all. 
> 
>Dave Watts, CTO, Fig Leaf Software 
>http://www.figleaf.com/ 
> 
>Fig Leaf Software provides the highest caliber vendor-authorized 
>instruction at our training centers in Washington DC, Atlanta, 
>Chicago, Baltimore, Northern Virginia, or on-site at your location. 
>Visit http://training.figleaf.com/ for more information! 
> 
> 
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190949
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to