hey all. need some help here.

using ASP, I am opening another .asp file (as a text file), and reading it line for line. At one point in my script, i have to say "if a variable contains the string: '../flash/<%= flashSource%>' , do something.

however, when i try to put this in the code, i get an unterminated String constant error.
here's the code line thats giving me the problem:

if(fileName <> "../flash/<%= flashSource %>" ) then

"<%= flashSource %>" is what the variable is supposed to hold.

is it something to do with escaping out the <%= ? i'm lost on this one.

it's a bit of a hack but this will work

if(fileName <> "../flash/<%= flashSource "&"%"&">" ) then
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.