Thursday, 9 August 2012

Call Parent Page Function in User Control


Some times we need to Call a Parent Page Function in User Control .
It Can Easily done using Reflection .

 this.Page.GetType().InvokeMember("MethodName", System.Reflection.BindingFlags.InvokeMethod, null, this.Page, null);

Just give Name of your Parent Page Function at the Place of MethodName.

No comments:

Post a Comment

What should you required to learn machine learning

  To learn machine learning, you will need to acquire a combination of technical skills and domain knowledge. Here are some of the things yo...