Quote values error mesage differently within a '<%

C

csgraham74

Hi guys,

Im having a real problem with the formatting of my code below. I
continue getting the "quote values differently inside a
'<%..."value"...%>' block.

Can anyone please help me sort out my code as ive been sitting at this
issue for two days now.

CODE BELOW


<a href = "#" onmouseover = "doButtons('<%#
FormatURL(DataBinder.Eval(Container.DataItem, "Large_Image1"))%>', '<%#
FormatURL(DataBinder.Eval(Container.DataItem, "Large_Image1"))%>')"
onmouseout = "doButtons('<%#
FormatURL(DataBinder.Eval(Container.DataItem, "Small_Image")) %>', '<%#
FormatURL(DataBinder.Eval(Container.DataItem, "Small_Image"))
%>')"><img name=IMAGE src='<%#
FormatURL(DataBinder.Eval(Container.DataItem, "Large_Image1")) %>'
width=75 height=60 border=0>

Thanks for any help

much appreciated

CG
 
G

Guest

Yeah it can get quite messy with code in the HTML like that

Have you tried adding an attribute to a serverside control

If you drag and drop on a serverside hyperlink control call it lnkButtons or
something
then once you have loaded the data use a string bulider (we will call it
sbJScript) to concatenate together the javascript doButtons( .........)

then you can say something like
lnkButtons.attributes.add("onmouseover",sbJScript.toString)

If you post up a the name of the dataset & datatable / datareader then I'll
elaborate a bit more on how to build the string if you need

Cheers

Felix
 

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

Top