Problem with VS.NET: Could not open in Design view. Place quotes around a '<%%>'

A

Aahz

I know this problem has been discussed before but still cannot work it
out, here is my code:

<span class="popup" onClick =
javascript:window.open('fullimage.aspx?id=<%#
DataBinder.Eval(Container.DataItem,"id")
%>',"blank","toolbar=no,width=520,height=550","resizable=0")>

<IMG src="/ch/gallery/t<%# DataBinder.Eval(Container.DataItem, "id")
%>.jpg"
style="cursor:hand" border="0">
</span>

I have tried every possible combination of quotas....stll no help

Anyone has any idea? I appreciate it
 
G

Guest

try this

<span class='popup' onClick = javascript:window.open('fullimage.aspx?id=<%#

DataBinder.Eval(Container.DataItem,"id")%>','blank','toolbar=no,width=520,height=550','resizable=0')>

<IMG src='/ch/gallery/t<%# DataBinder.Eval(Container.DataItem, "id")%>.jpg'
style='cursor:hand' border='0'>

</span>
 
E

Eliyahu Goldin

Try using \' like this:

<span class="popup" onClick =javascript:window.open('fullimage.aspx?id=\'<%#
DataBinder.Eval(Container.DataItem,"id")
%>\'',"blank","toolbar=no,width=520,height=550","resizable=0")>

and the same in the <img..>

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top