title: Override DataBind()
body: <p>I have a page.</p>
  
  <p>In the C#:</p>
  
  <pre><code>public class myClass
  {
      protected void Page_Load(object sender, EventArgs e)
      {
          mydropdown1.DataSource = location_of_data;
          mydropdown1.DataBind();
  
          mydropdown2.DataSource = location_of_data;
          mydropdown2.DataBind();
      }
  }
  </code></pre>
  
  <p>Let's assume that the aspx file has 2 dropdowns.</p>
  
  <p>I would like to overwride the DataBind function, keeping the current string the same, but I want to change the values of each item that I want to Bind.</p>
  
  <p>I googled a solution of DataBind override which looks as follows:</p>
  
  <pre><code>public override void DataBind()
  {
     //...some implementation here...
     base.DataBind()
  }
  </code></pre>
  
  <p>but I am unsure if I should put thie override method in myClass. Also if I have two DropDowns and I want to treat their DataBinds differently, how should I approach this?</p>