Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can i do like this to view image from database


ASP.NET
<asp:ImageButton ID="userimage" runat="server" ImageUrl='"userimage","~/images/{0}"'/>
Posted
Updated 10-Nov-12 21:29pm
v2

hi
i dont know that i get you main purpose or not,anyway:
if you want read your image url from database you can select imageurl from database and bing it like below code:
HTML
<asp:imagebutton id="userimage" runat="server" imageurl="<%#Eval('imageUrlFieldNameindDataBase')%>" xmlns:asp="#unknown" />
 
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