How i can use this script to display image from datalist?

Hi all, if any body can help me

I have images dispaly from DataBase in DataList , i need to apply this script that show up image to the image

This Code datalist

<asp:DataList ID=“DataList1” runat=“server” DataKeyField=“ID”
<asp:Image ID=“Image1” runat=“server” Height=“127px”
ImageUrl=‘<%# Eval(“Image”, “~/images/Products/{0}”) %>’ Width=“135px” />
<br />
<br />
<br />

how i can use this script to display image from datalist ?

Can you clarify, I have absolutely no idea where your going with this. The page you mentioned is pure JavaScript, will have nothing to do with ASP.NET, as one is server-side and one is client-side. What you need is an pure ASP.NET solution, and their are plenty of “display image from database, and put in data control” out there.

You can do it. You do not need a pure ASP.NET solution, as JS works fine with JS. You just need to make sure the js code is good enough. I would rather try and look for a similar script using jQuery, as it will be a lot easier to implement.

That example is going to take quite a bit to get to work in your datalist