title: Trigger not firing in UpdatePanel (ASP.NET)
body: <p>I have two drop downs and one of them gets updated by AJAX depending on which index is selected on the first ddl. How ever the triggers are not firing.</p>
  
  <p>The two dropdownlists:</p>
  
  <pre><code>&lt;div class="form-group"&gt;
              &lt;label for="ddlFaculty" class="col-lg-4 control-label"&gt;Faculty:&lt;/label&gt;
              &lt;div class="col-lg-8"&gt;
                  &lt;asp:DropDownList ID="ddlFaculty" EnableViewState="true" class="form-control" style="margin: 0 0 308px; margin-bottom: 10px;" runat="server" aria-expanded="true" SelectedIndexChanged="UpdateCourse" OnSelectedIndexChanged="UpdateCourse"&gt;
                      &lt;asp:ListItem Value="0"&gt;Select Faculty&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Value="1"&gt;Faculty of Arts&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Value="2"&gt;Faculty of Business&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Value="2"&gt;Faculty of Health&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Value="2"&gt;Faculty of Health&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Value="2"&gt;Faculty of Service Industries&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Value="2"&gt;Faculty of Trades&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Value="2"&gt;Te Wananga Maori&lt;/asp:ListItem&gt;
                  &lt;/asp:DropDownList&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="form-group"&gt;               
              &lt;label for="ddlCourse" class="col-lg-4 control-label"&gt;Course:&lt;/label&gt;
              &lt;div class="col-lg-8"&gt;
                  &lt;asp:UpdatePanel ID="updateCourse" runat="server"&gt;
                      &lt;ContentTemplate&gt;
                      &lt;asp:DropDownList ID="ddlCourse" CssClass="form-control" style="margin: 0 0 308px; margin-bottom: 10px;" runat="server"&gt;
                          &lt;asp:ListItem Value="2"&gt;Select Course&lt;/asp:ListItem&gt;
                      &lt;/asp:DropDownList&gt;
                   &lt;/ContentTemplate&gt; 
                      &lt;Triggers&gt;
                              &lt;asp:AsyncPostBackTrigger ControlID="ddlFaculty" EventName="SelectedIndexChanged"/&gt;
                          &lt;/Triggers&gt;                                        
                  &lt;/asp:UpdatePanel&gt;
              &lt;/div&gt;                  
          &lt;/div&gt;               
      &lt;/div&gt;
  </code></pre>
  
  <p>This is the code-behind</p>
  
  <pre><code>    public partial class test : System.Web.UI.Page
  {
      private string[] Maori, Trades, Industries, Business, Arts, Health;
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
  
      protected void UpdateCourse(object sender, EventArgs e)
      {
  
          switch (ddlFaculty.SelectedIndex)
          {
  
              case 1:
                  {
                      Arts = new string[]
                      {
                          "Adobe Creative Suite", "Bachelor of Applied Arts (Creative Writing)", "Bachelor of Applied Arts (Music)", "Bachelor of Applied Arts (Performing Arts)",
                          "Bachelor of Applied Arts (Visual Arts and Design)", "Bachelor of Teaching (Early Childhood Education)", "Certificate in Advanced Photography",
                          "Certificate in Desktop Publishing for Print and the Web", "Certificate in Digital Media", "Certificate in DJ Music", "Certificate in Foundation Music",
                          "Certificate in Live Sound and Event Production", "Certificate in Mastercraft", "Certificate in Multimedia Journalism", "Certificate in Practical Photography",
                          "Certificate in Professional Teaching Practice(English)", "Certificate in Rock, Jazz and Commercial Music", "Certificate in Screen Acting",
                          "Diploma in Applied Stage and Screen Arts(Advanced)", "Diploma in Creative Writing", "Diploma in Creative Writing(Advanced)", "Diploma in Digital Design",
                          "Diploma in Digital Design and Multi - media", "Diploma in Early Childhood Education", "Diploma in Jewellery Design", "Diploma in Performing Arts(Commercial Dance)",
                          "Diploma in Performing Arts: Singing(Musical Theatre)", "Diploma in Publishing", "Diploma in Publishing(Applied)", "Diploma in Stage and Screen Arts",
                          "Graduate Diploma in Creative Writing", "National Diploma in Journalism(Multi - media)(Level 5)", "The Creative Writing Programmes Introduction"
                      };
  
                      for (int i = 0; i &lt; Arts.Length; i++)
                      {
                          ddlCourse.Items.Add(Arts[i]);
                      }
                      break;
                  }
              case 2:
                  {
                      Business = new string[]
                       {
                         "Bachelor of Applied Business Studies", "Bachelor of Information Technology", "Certificate in English Language", "Certificate in English Language (Advanced)",
                         "Certificate in Information Technology", "Diploma in Information Technology (Level 5)", "Diploma in Information Technology (Level 6)", "Diploma in Management (Not for Profit Sector)",
                         "Graduate Diploma in Applied Business Studies", "Graduate Diploma in Information Technology", "New Zealand Diploma in Business", "New Zealand Institute of Management (NZIM)Certificate in Management",
                         "New Zealand Institute of Management (NZIM)Certificate in Small Business Management", "New Zealand Institute of Management (NZIM)Diploma in Management",
                         "New Zealand Law Society Legal Executive Diploma"
                       };
  
                      for (int i = 0; i &lt; Business.Length; i++)
                      {
                          ddlCourse.Items.Add(Business[i]);
                      }
                      break;
                  }
              case 3:
                  {
                      Health = new string[]
                       {
                          "Bachelor of Health Science (Paramedic)", "Bachelor of Nursing", "Bachelor of Nursing Māori", "Bachelor of Nursing Pacific",
                          "Bachelor of Social Work", "Certificate in Foundation Education (Health Science)", "Certificate in Foundation Education (Social Sciences)",
                          "Certificate in Health Professional Practice Development", "Certificate in Nursing (Long Term Care and Rehabilitation)",
                          "Certificate in Preparation for Tertiary Study", "Competency Assessment Programme for Nurses", "National Certificate in Mental Health(Mental Health Support Work)",
                          "National Certificate in Tamariki Ora – Well Child Services", "National Diploma in Mental Health(Mental Health Support Work)",
                          "Postgraduate Certificate in Hospice Palliative Care", "Postgraduate Certificate in Nursing", "Postgraduate Certificate in Perioperative Specialty Nursing",
                          "Postgraduate Certificate in Primary Health Care Specialty Nursing", "Postgraduate Certificate in Specialty Care", "Pre - entry to Degrees"
                       };
  
                      for (int i = 0; i &lt; Health.Length; i++)
                      {
                          ddlCourse.Items.Add(Health[i]);
                      }
                      break;
                  }
              case 4:
                  {
                      Industries = new string[]
                       {
                          "Certificate in Beauty and Hairdressing", "Certificate in Beauty Therapy", "Certificate in Cafe Service", "Certificate in Office Administration and Computing (Advanced)",
                          "Certificate in Office Administration and Computing (Intermediate)", "Certificate in Office Administration and Computing (Introductory)",
                          "Certificate in Office Skills/Computing", "Certificate in Outdoor Adventure", "Certificate in Professional Cookery", "Certificate in Retail and Cosmetic Services",
                          "Certificate in Retail Management", "Community Computing", "Diploma in Outdoor Adventure", "Flexi-Learn Computer Applications","Mountain Safety Council Courses",
                          "National Certificate Business (First Line Management) Level 3", "National Certificate in Computing (Level 2 and 3)", "National Certificate in Hairdressing (Salon Support)",
                          "National Certificate in Tourism (Core Skills) Level 3", "National Diploma in Hospitality (Management) (Level 5)", "Short Course Certificate in Avalanche Safety",
                          "Short Course Certificate in Computer Applications"
                       };
  
                      for (int i = 0; i &lt; Industries.Length; i++)
                      {
                          ddlCourse.Items.Add(Industries[i]);
                      }
                      break;
                  }
              case 5:
                  {
                      Trades = new string[]
                        {
                          "Certificate in Automotive Engineering", "Certificate in Automotive Engineering (Advanced)", "Certificate in Aviation (Aeroplane)", "Certificate in Aviation (Aeroplane) Instructor Rating ",
                          "Certificate in Aviation (Helicopter)", "Certificate in Aviation (Helicopter) Advanced", "Certificate in Aviation (Helicopter) Turbine", "Certificate in Aviation (Multi-engine Instrument Rating)",
                          "Certificate in Carpentry", "Certificate in Civil Construction (Introductory Skills)", "Certificate in Commercial Road Transport", "Certificate in Electrical Engineering",
                          "Certificate in Horticulture and Landscaping", "Certificate in Plumbing, Drainlaying", "Gasfitting and Roofing", "Certificate in Road Transport",
                          "Certificate in Trade Skills", "National Certificate in Floristry (Level 2)"
                        };
  
                      for (int i = 0; i &lt; Trades.Length; i++)
                      {
                          ddlCourse.Items.Add(Trades[i]);
                      }
                      break;
  
                  }
              case 6:
                  {
                      Maori = new string[]
                        {
                          "Certificate in General Studies", "Certificate in Mastercraft (Ngā Tapuwae o Hine-te-iwaiwa)",
                          "Certificate in Reo Māori – Te Ara Piko", "Certificate in Reo Māori – Tēnei Au", "Certificate in Waka Ama",
                          "Certificate in Waka Ama (Advanced)", "National Certificate in Whakairo (Tūturu) (Level 4)", "National Diploma in Reo Māori (Level 5)",
                          "National Diploma in Reo Māori (Level 6)", "National Diploma in Whakairo (Level 5)", "National Diploma in Whakairo (Level 6)",
                          "Te Hiringa o Te Reo"
                        };
  
                      for (int i = 0; i &lt; Maori.Length; i++)
                      {
                          ddlCourse.Items.Add(Maori[i]);
                      }
                      break;
                  }
          }
      }
  }
  </code></pre>
  
  <p>Im not too sure the trigger isnt firing - its pointing to the correct dropdownlist and its got the right event to listen for</p>
  
  <p>Any help would be appreciated</p>