title: Dynamic dropdownlist control doesn't fire Selectedindexchanged event
body: <p>I need to fire the Selectedindexchanged event of a dynamically created dropdownlist.
  I've no code in aspx page. All code are in codebehind.</p>
  
  <pre><code>DropDownList objdropDown = new DropDownList();
  objdropDown.EnableViewState = true;
  objdropDown.AutoPostBack = true;                                
  //objdropDown.AutoPostBack = true;
  //objdropDown.SelectedIndexChanged += new EventHandler(objdropDown_SelectedIndexChanged);
  
  protected void objdropDown_SelectedIndexChanged(object sender, EventArgs e)
  {
      //My code here
  }
  </code></pre>
  
  <p>After selecting a random item drom Dropdownlist, it postbacks but the dropdown control is not visible. What am I doing wrong here? Code would be helpful. Thanks!</p>