From: Mario on 9 Jun 2010 01:45 Could you please look the next code: <asp:DataList 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> </asp:DataList> 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?
|
Pages: 1 Prev: Simple hack to get $1000 to your home. Next: encrypt connectionString in app.config |