i save path and name file in databse
and want to display in repeater
but
the picture don't displayed
please help
tnx
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<a href="<%#Eval("filenameOrginal") %>">
<img src="<%#Eval("flienameThumb") %>" /> </a>
</ItemTemplate>
</asp:Repeater>
dal db = new dal();
DataTable dt = new DataTable();
dt = db.run_dr("select * from picgallery where show='true' ");
Repeater1.DataSource = dt;
Repeater1.DataBind();
i save path and name of file to database like this:
gallerypic/orginal/12.jpg
i try this to:
~/gallerypic/orginal/12.jpg
or:
../gallerypic/orginal/12.jpg
in source code of browser:
<a href="gallerypic/orginal/12.jpg">
<img src="gallerypic/thumb/12.jpg" />
<a href="~/gallerypic/orginal/12.jpg">
<img src="~/gallerypic/thumb/12.jpg" />