I have a similar problem.
I have a web custom control with a DropDownList. When the SelectedIndexValue changes, it should do specific action for a particular choice.
It's my first control, and I'm not sure I'm impletemented the good interface.
Contol:
namespace Minutor
{
public class Minutor : System.Web.UI.WebControls.WebControl, IPostBackDataHandler, IPostBackEventHandler
{
....
private DropDownList _minutes;
public Minutor()
{
//
// TODO: Add constructor logic here
//
_minutes = new DropDownList();
_minute.AutoPostBack = true;
_minutes.SelectedIndexChanged += new EventHandler(_minutes_SelectedIndexChanged);
....
void _minutes_SelectedIndexChanged(object sender, EventArgs e)
{
_autreSelected = true;
}
Basically that's the control. But the SelectIndexChanged event never fires...
I did something wrong?
Thanks for your help,
Chris
|