M
Mario
Could you please look the next code:
<aspataList ID="dlstImage" RepeatColumns="4"
runat="server">
<ItemTemplate>
<%--Ovo je za poèetno
iniciranje uèitanih slika, meni ne treba--%>
<asp:Image ID="Image1"
ImageUrl='<%#Eval("Name","~/UploadSlika/{0}") %>' Width="100px"
runat="server" BorderColor="#006600" />
<br />
</ItemTemplate>
</aspataList>
I works ok, it shows all images from "UploadSlika" folder. But I need images
from client folder, for example:
~UploadSlika/ClientFolder1/*.jpg
or
~UploadSlika/ClientFolder2/*.jpg
etc.
How dynamicaly change a folder?
In c# code I tried this:
logoi.ImageUrl = Path.Combine("~/UploadSlika/" +
name.Text + "/", "*.*");
But it don't works.
Second question is: what is the "Name" in Eval code? Is it property ? From
which class?
<aspataList ID="dlstImage" RepeatColumns="4"
runat="server">
<ItemTemplate>
<%--Ovo je za poèetno
iniciranje uèitanih slika, meni ne treba--%>
<asp:Image ID="Image1"
ImageUrl='<%#Eval("Name","~/UploadSlika/{0}") %>' Width="100px"
runat="server" BorderColor="#006600" />
<br />
</ItemTemplate>
</aspataList>
I works ok, it shows all images from "UploadSlika" folder. But I need images
from client folder, for example:
~UploadSlika/ClientFolder1/*.jpg
or
~UploadSlika/ClientFolder2/*.jpg
etc.
How dynamicaly change a folder?
In c# code I tried this:
logoi.ImageUrl = Path.Combine("~/UploadSlika/" +
name.Text + "/", "*.*");
But it don't works.
Second question is: what is the "Name" in Eval code? Is it property ? From
which class?