title: How do I Grab Selected Index on two Dropdownlist's OnSelectedIndexChanged?
body: <p>I am trying to use two DropDownLists to filter data.  I set both of the <code>OnSelectedIndexChanged</code> Equal to the method below. The problem is it is only grabbing the <code>SelectedIndex</code> of the DDL that is changed. Example: if i choose a option in DDL1 it grabs that value and doesnt grab the value of DDL2. They both have the same <code>OnSelectedIndexChanged</code> i figured it would grab the current value of both. Is there a way to make it look at both DDL Controls?</p>
  
  <pre><code> protected void BrandsList_SelectedIndexChanged(object sender, EventArgs e)
   {
      int DDLcatId = CategoriesList.SelectedIndex;
      int DDLBraId = BrandsList.SelectedIndex;
  
      IQueryable&lt;Product&gt; DDLprodResult = GetProductsDDL(DDLcatId, DDLBraId);
  
      if(DDLprodResult == null)
      {
  
      }
  
      else
      {
         CatLab.Text = DDLprodResult.ToList().Count().ToString();
         productList.DataSource = DDLprodResult.ToList();
         productList.DataBind();
      }
   }
  </code></pre>