hi experts,
i have a problem calling an event handler from another control
scenario:
1-i have two drop down lists the main dropdown list :
when the selected index changed event is called, another drop down list appears with a certain value according to the selected value of the main....
2-the second drop down list selected index changed event executes some functions on a check boxes list
the problem :
when the value of the second dropdown list is assigned i need to call the selected index changed event of the second drop down list to execute the functions on the check boxes list
any ideas ????
Loading

Dorababu MekaPosted Sep 13, 2011, 11:03 AM
yourdropdown_SelectedIndexChanged(this,Eventargs.Empty)
VulpesPosted Sep 21, 2011, 5:55 AM
As it won't be rendered when the Visible property is false, that's entirely plausible.
Morcos AdelPosted Sep 21, 2011, 5:14 AM
as when the control visibility set to false the values is not set but when the visibility is set to true the values are assigned well.....
Morcos AdelPosted Sep 21, 2011, 5:10 AM
VulpesPosted Sep 21, 2011, 5:01 AM
Morcos AdelPosted Sep 21, 2011, 4:53 AM
but the problem still not solved as when i call the selected index changed as follow
protected void TypesDropDown_SelectedIndexChanged(object sender, EventArgs e)
{
GetAllReasons(DropDown.SelectedItem.Value)
}
When the Event occurs the DropDown.SelectedItem.Value is null
any ideas ?????
Prabhu RajaPosted Sep 14, 2011, 8:46 AM
Call SelectionIndex_Changed Event Handler inside of SelectChange_Commited Event Handler of Second Drop-down list.
----------------------------------------
If this helps you, then mark as "Correct Answer"
Thank You
Dorababu MekaPosted Sep 14, 2011, 7:43 AM
yourdropdown_SelectedIndexChanged(yourdropdownname,Eventargs.Empty)
be sure that you are raising for that particular event and also check whether SelectedIndexChanges exists for that dropdown then only it works
VulpesPosted Sep 14, 2011, 6:15 AM
Dorababu MekaPosted Sep 14, 2011, 5:54 AM
Morcos AdelPosted Sep 14, 2011, 5:52 AM
Dorababu MekaPosted Sep 13, 2011, 11:55 AM
Morcos AdelPosted Sep 13, 2011, 11:00 AM
Dorababu MekaPosted Sep 13, 2011, 10:47 AM