title: drop-down list in C# issue
body: <p>drop-down list in C#.net not showing the items it supposed to show!
  i hv a drop-down list that suppose to show image names from a folder, but it is not doing that!
  i dont have errors when launching the .aspx file!
  buuuuuut when i get output there is only empty dropdown list!</p>
  
  <hr>
  
  <p>this the ManageProducts.aspx codes are:</p>
  
  
  
  <p>
  
  
      <p>
          Name:</p>
      <p>
          
      </p>
      <p>
          Type:</p>
      <p>
          
          
          " SelectCommand="SELECT * FROM [ProductTypes] ORDER BY [Name]">
      </p>
      <p>
          Price:</p>
      <p>
          
      </p>
      <p>
          Image:</p>
      <p>
          
          
      </p>
      <p>
          Description:</p>
      <p>
          
      </p>
      <p>
          
      </p>
      <p>
          
      </p>
  </p>
  
  <hr>
  
  <p>and this the behind codes:</p>
  
  <pre><code>using System;
  using System.Collections;
  using System.IO;
  
  
  public partial class PagesNew_ManagementPages_ManageProducts : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  if(!IsPostBack)   //this baby makes the data not come every time the pg is refreshed , 
      //postback=refresh page
      GetImages();
      }
  
      private void GetImages()
      {
          try
          {
              //get all filepaths
              string[] images = Directory.GetFiles(Server.MapPath("~/Img/Products/"));
  
              //get all filenames and put them in a stupid array....yeah DSA days
              ArrayList imageList = new ArrayList();
              foreach (string image in images)
              {
                  string imageName = image.Substring(image.LastIndexOf(@"\", StringComparison.Ordinal) + 1);
                  imageList.Add(imageName);
                 // see the Array in dd viwe datasource and refresh
                  ddImage.AppendDataBoundItems = true;
                  ddImage.DataBind();
  
  
              }
  
  
          }
          catch (Exception e)
          {
              lblResult.Text = e.ToString(); 
          }
  
  
  
      }
  
      protected void ddImage_SelectedIndexChanged(object sender, EventArgs e)
      {
  
      }
  
  
   } 
  </code></pre>