C
Chris Leffer
Hi.
I have an image inside a repeater that needs an onclick event,
dynamically generated. I have this code on my .aspx:
<IMG onclick='<%# "toggleDetails('" &
DataBinder.Eval(Container.DataItem,"code") & "',this);"%>'
src="../Images/show.gif" style="cursor: hand;" />
If I run the page, the code works ok, but when I try to see the page
through the design tab, I receive an error saying:
"Could not open in Design View. Quote values differently inside a
'<%..value" ... % block."
I have others calls to DataBinder on the same page, but they don't raise
any errors. What is wrong in my statement?
Regards,
Chris Leffer
I have an image inside a repeater that needs an onclick event,
dynamically generated. I have this code on my .aspx:
<IMG onclick='<%# "toggleDetails('" &
DataBinder.Eval(Container.DataItem,"code") & "',this);"%>'
src="../Images/show.gif" style="cursor: hand;" />
If I run the page, the code works ok, but when I try to see the page
through the design tab, I receive an error saying:
"Could not open in Design View. Quote values differently inside a
'<%..value" ... % block."
I have others calls to DataBinder on the same page, but they don't raise
any errors. What is wrong in my statement?
Regards,
Chris Leffer