asp image

N

nicholas

Why is this not working ??

<asp:Image ID="myimage"
ImageUrl='/aspx_scripts/thumbnailimage.aspx?filename=/files/products/image1/
<%# DataBinder.Eval(Container.DataItem, "productID") %><%#
DataBinder.Eval(Container.DataItem, "productimage1")
%>?height=140&width=140' visible='<%#
IIF(DataBinder.Eval(Container.DataItem, "productimage1")=".jpg",true,false)
%>' runat="server" />

I get a server malformed error.
The visible='...' part is OK, because if I do this : ImageUrl="blalba.gif"
it works

THX
 
N

nicholas

Got it !

this is how it should be:

<asp:Image ID="myimage" ImageUrl='<%#
"/aspx_scripts/thumbnailimage.aspx?filename=/files/products/image1/" &
DataBinder.Eval(Container.DataItem, "productID") &
DataBinder.Eval(Container.DataItem, "productimage1") &
"&height=140&width=140" %>' visible='<%#
IIF(DataBinder.Eval(Container.DataItem, "productimage1")=".jpg",true,false)
%>' runat="server" />
 

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,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top