I'm trying to generate this html
<a href="#" class="button" onclick="
$('#someControl').toggle('blind',
{ easing: 'easeInOutSine'}); return false;">
With my databinding expression I have
<a href="#" class="button" onclick='<%# string.Format(
"$('#{0}').{1}",
Eval("Key"),
".toggle('blind', { easing: 'easeInOutSine'}); return false"
)%>'>
Which doesn't raise any errors or anything however when it renders out the html when I inspect it with Firebug this is what it's showing from the browser
<a false="" return="" });="" easeinoutsine="" easing:="" {=""
,="" blind="" )..toggle(="" #plan1=""
onclick="$(" class="button" href="#">
I've tried a few attempts at inlining this with and without the string.Format, using a function inside the codebehind that I call during my databinding all seems to produce this garbled output. Am I missing an escape or something similar somewhere?