Mar 19, 2009, 2:40 PM
Delegating control's event to the owner page
Hello,
I saw similar posts but although they're marked solved it doesn't work for me.
Owner Page Code:
Hope to hear from you soon.
Regards,
Gokce
I saw similar posts but although they're marked solved it doesn't work for me.
Owner Page Code:
protected void ShowWindowsEditor(object sender, AjaxEventArgs e)
{
string id = e.ExtraParams["taskId"];
List<TwoGridsEntity> activities = DataActivity.GetTwoGridsList(id);
TwoGrids1.SaveButtonClick += OnProcessClick;
TwoGrids1.FillGrids(activities);
TwoGrids1.Show();
}
protected void OnProcessClick(object sender, AjaxEventArgs e)
{
TwoGrids1.Hide();
}
Control Code public event ComponentAjaxEvent.AjaxEventHandler SaveButtonClick
{
add { Button5.AjaxEvents.Click.Event += value; }
remove { Button5.AjaxEvents.Click.Event -= value; }
}
When I hit the save button in the control it doesn't fire the event, I attached in the owner page. What am I doing wrong or is this a bug?Hope to hear from you soon.
Regards,
Gokce