Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Bind UrlImage in Databas to image
   <asp:Image ID="Image3" runat="server" Height="99px"
ImageUrl='<%# Bind("MoviePoster") %>' Width="98px" />


it is not working
what can I to to do it
Posted

Hi,
For example you can use this code:

C#
Imageurl='<%#  "~/Image/DBImages/Movie/"+ Eval("MoviePoster") %>'
 
Share this answer
 
Comments
mariamg 25-Apr-12 7:31am    
it's working
Thx For you time & effort
hamid-shrk 26-Apr-12 12:42pm    
your welcome :)
I think you want to bind the path of the image which is stored in database.


Imageurl='<%#Eval("ColumnName")%>'
 
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