Posted on: 1/23/2015 1:51:08 PM | Views : 605

Hello,
I'm using knockoutJS with an ascx control, and am getting a funny syntax error:
<div> <span data-bind="value: '<%: someValue %>'"></span> </div> gives me an "Unterminated string" syntax error.  However, if I change bind to anything else it goes away.
Can someone explain why this happens? ***EDIT*** I forgot to add, if you copy/paste this line of code, the IDE adds four spaces between %> and the apostrophe (').  Not sure what the IDE is trying to tell me.  Also, I can duplicate this error in VS2010, 2012, and 2013 for web.
Thank you
-Dan

Go to the complete details ...