title: DropDownList's SelectedIndexChanged event not firing
body: <p>I have a DropDownList object in my web page. When I click on it and select a different value, nothing happens, even though I have a function wired up to the <code>SelectedIndexChanged</code> event.</p>
  
  <p>First, the actual object's HTML code:</p>
  
  <pre><code>&lt;asp:DropDownList ID="logList" runat="server" 
         onselectedindexchanged="itemSelected"&gt;
  &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>And this is that function, <code>itemSelected</code>:</p>
  
  <pre><code>protected void itemSelected(object sender, EventArgs e)
  {
      Response.Write("Getting clicked; " + sender.GetType().ToString());
      FileInfo selectedfile;
      Response.Write("&lt;script&gt;alert('Hello')&lt;/script&gt;");
      foreach (FileInfo file in logs)
      {
          if (file.Name == logList.Items[logList.SelectedIndex].Text)
          {
              Response.Write("&lt;script&gt;alert('Hello')&lt;/script&gt;");
          }
      }
  }
  </code></pre>
  
  <p>None of the Responses appear, and that portion of JavaScript is never run. I've tried this on the latest 3.6 version of Firefox, as well as Internet Explorer 8. This is being served from a Windows Server 2003 R2 machine, running ASP.NET with the .NET Framework version 4.</p>