Have you tried assigning it to a variable in a cfset and then displaying the variable. Alternately, convert to RGB: style="background-color:rgb(221 255 221)"'
> -----Original Message----- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 09, 2008 9:34 AM > To: CF-Talk > Subject: Outputting a hash character in an IIF() function. > > I'm having trouble with this and the usual tricks don't seem > to be working. > > #iif(bgFlag,DE(' style="background-color: #DDFFDD"'),DE(''))# > > This fails. I have tried escaping the internal hash character > by doubling. I have tried to concatenate chr(35). > Everything I do throws exceptions involving invalidly paired > hash characters. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296253 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4