I have a custom control that doesn't fire the event handler till the 2nd click.
Code:
protected override void CreateChildControls()
{
ddlConfig = new DropDownListControl();
ddlConfig.ID = "_PLATFORM_CONTROLS_ddlConfig";
ddlConfig.Required = false;
ddlConfig.AutoPostBack = true;
ddlConfig.LabelText = "Configuration:";
ddlConfig.DropDownList.SelectedIndexChanged -= new EventHandler(DropDownList_SelectedIndexChanged);
ddlConfig.DropDownList.SelectedIndexChanged += new EventHandler(DropDownList_SelectedIndexChanged);
PopulateConfigsList();
//Add Control to Grouping Control, etc...
}
Don't know why, but the first click triggers the postback, but doesn't fire the event handler. The second click does and so on... Does any one know why?
Actions are a direct result of your desires. Desire for good things.