title: List view Item data insert to a List<> in c# asp.net
body: <p>My list view ItemTemplate is as follows</p>
  
  <pre><code>&lt;a href='&lt;%# getpath(Eval("IMAGE_PATH")) %&gt;' title='&lt;%# Eval("IMAGE_DESCRIPTION") %&gt;'&gt;
     &lt;asp:Image ID="capty" CssClass="capty" runat="server" 
         AlternateText='&lt;%# Eval("IMAGE_DESCRIPTION") %&gt;' 
         ImageUrl='&lt;%# retriveurl(Eval("IMAGE_PATH")) %&gt;' 
         Height="100px" Width="150px"&gt;
     &lt;/asp:Image&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>my codebehind source is</p>
  
  <pre><code>int count=ListView1.Items.Count;
      List&lt;ImageGallery&gt; _list = new List&lt;ImageGallery&gt;();
      for (int i = 0; i &lt; count; i++)
      {
          ImageGallery ob = new ImageGallery();
          ob.ImageName = ??
          ob.Description = ??
          _list.Add(ob);
      }
  </code></pre>
  
  <p>now i want to insert the Eval("IMAGE_DESCRIPTION") data to a ob.Description and ob.ImageName=Eval("IMAGE_ID") .How to do this?</p>
  
  <pre><code>List&lt;ImageGallery&gt; _list = new List&lt;ImageGallery&gt;(); 
  for (int i = 0; i &lt; ListView1.Items.Count; i++) 
  { 
      ImageGallery ob = new ImageGallery(); 
      ob.ImageName = ""; 
      ob.Description = " "; 
      _list.Add(ob); 
  }
  </code></pre>