title: How bind List to DropDownList
body: <p>I have written a class that have a method in website that bind List of Entity objects of my database to DropDownList Like this:</p>
  
  <pre><code> internal static void bind(List&lt;Book&gt; list, DropDownList ddl)
   {
     try
     {
             ddl.Items.Clear();
             ddl.Items.Add(li);// li is an ListItem Like -&gt; ListItem("Please                    Select","");
             ddl.DataSource = list;
             ddl.DataBind();
     }
     catch (Exception)
      { }
  </code></pre>
  
  <p>}</p>
  
  <p>when i want to bind another object like List or ... I must write another method with Just difference in Lists .
  Is there any way to write One method to bind all my List in my asp.net Sit and evry time i will want  i could bind that in another page?</p>