Click here to Skip to main content
Sign Up to vote bad
good
See more: C#ASP.NET
can i do like this to view image from database
 

 <asp:ImageButton ID="userimage" runat="server" ImageUrl='"userimage","~/images/{0}"'/>
Posted 10 Nov '12 - 21:28
Edited 10 Nov '12 - 21:29


2 solutions

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:
<asp:imagebutton id="userimage" runat="server" imageurl="<%#Eval('imageUrlFieldNameindDataBase')%>" xmlns:asp="#unknown" />
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 425
1 OriginalGriff 315
2 Slacker007 240
3 Aarti Meswania 210
4 Maciej Los 200
0 Sergey Alexandrovich Kryukov 8,893
1 OriginalGriff 7,134
2 CPallini 3,678
3 Rohan Leuva 3,036
4 Maciej Los 2,428


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 11 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid