Click here to Skip to main content
16,020,822 members
Please Sign up or sign in to vote.
1.33/5 (3 votes)
See more:
XML
<asp:Image ID="Image1" runat="server";
           ImageUrl='<%# "Handler.ashx?ID=" + Eval("ID")%>'/



what this line do?

ImageUrl='<%# "Handler.ashx?ID=" + Eval("ID")%>'/

what is Eval ?
Posted
Updated 14-May-11 7:25am
v5
Comments
ZeeroC00l 14-May-11 13:13pm    
-- corrected for < > and ";

It sets the image url to "Handler.ashx?ID=" plus whatever the returned value is from the Eval method.
 
Share this answer
 
it is HTTP Handler (*.ashx) and image is created dynamically by using database

Check the following:

http://www.dotnetcurry.com/ShowArticle.aspx?
ID=129
[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900