Hello Masters!
I´m writting a page that need to call an User Control Method dinamically.
I have a GridView on my page and on the RowDataBound I´m loading this User Control for each row.
At my User Control I have a public void Method that I need to call when I load this Control.
I was reading about reflection, but at the code that I used, the method that I created on the User Control wasn´t found. See the code:
UserControl x = (UserControl)LoadControl("../usercontrols/ucResultData.ascx"); x.GetType().InvokeMember("CreateData", BindingFlags.InvokeMethod, null, this.Page, null);
This is the code on the User Control:
public void CriarGradeHorario() { ... }
Thank´s Masters!
Andrew