title: To bind images in repeater using asp.net
body: <p>In the below code i have a repeater and i want to bind the images from local drive to repeater.But the image is not binding but i can get the image name from the local drive pls help me to solve the issue.</p>
  
  <pre><code>  string[] filePaths = Directory.GetFiles("D:\\Users\\Images\\Pictures\\");
              List&lt;ListItem&gt; files = new List&lt;ListItem&gt;();
              foreach (string filePath in filePaths)
              {
                  string fileName = Path.GetFileName(filePath);
                  files.Add(new ListItem(fileName, @"D:\Users\Images\Pictures\" + fileName)); //i can get image name  --D:\Users\Images\Pictures\flight.jpg
              }
              Repeater1.DataSource = files;
              Repeater1.DataBind();
  
  
   &lt;asp:Repeater ID="Repeater1" runat="server"&gt;
                          &lt;ItemTemplate&gt;
                              &lt;li&gt;
                                  &lt;img src='&lt;%# DataBinder.Eval(Container.DataItem,"Value") %&gt;' title='&lt;%# (DataBinder.Eval(Container.DataItem,"Text").ToString()).Split('.')[0].ToString() %&gt;' alt=""&gt;&lt;/li&gt;
                          &lt;/ItemTemplate&gt;
                      &lt;/asp:Repeater&gt;
  </code></pre>