C:\Users\maroua\Documents\Visual Studio 2010\Projects\PI_DEV\MyImage\avatar1.png
Hi,
I don't think it right if you wanna save as an "absolute path" in the database. Instead, please copy your images directly into a folder called "Images" in the root of your project, and then use the virtual relative path.
MarwaDe
0 Points
2 Posts
Probleme display image in Gridview
Dec 30, 2012 07:13 PM|LINK
Hi, i wanna display an image in GridView i stored absolute path in my database "Oracle"
example : C:\Users\maroua\Documents\Visual Studio 2010\Projects\PI_DEV\MyImage\avatar1.png
I followed many tutoriasl but it doesn't work
Mycode:
<asp:TemplateField>
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("AVATARLINK") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("AVATARLINK") %>' />
</ItemTemplate>
</asp:TemplateField>
Avatarlink contains path of image
oned_gk
All-Star
30915 Points
6326 Posts
Re: Probleme display image in Gridview
Dec 30, 2012 07:26 PM|LINK
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Probleme display image in Gridview
Dec 31, 2012 12:10 AM|LINK
Hi,
I don't think it right if you wanna save as an "absolute path" in the database. Instead, please copy your images directly into a folder called "Images" in the root of your project, and then use the virtual relative path.
Reguards!