Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Image & Eval

Reply
Thread Tools

Image & Eval

 
 
Mario
Guest
Posts: n/a
 
      06-09-2010
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?




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
to eval or not to eval? Marc Girod Perl Misc 2 04-19-2011 01:13 PM
eval('07') works, eval('08') fails, why? Alex van der Spek Python 6 01-08-2009 08:24 PM
Different behavior between eval "07" and eval "08" Liang Wang Perl Misc 8 02-02-2008 08:31 PM
DataBinder.Eval and Eval. craigkenisston@hotmail.com ASP .Net 1 06-16-2006 05:33 PM
DataBinder.Eval for an object's property property... like Eval(Container.DataItem,"Version.Major") Eric Newton ASP .Net 3 04-04-2005 10:11 PM



Advertisments