System.Web.UI.Page p = this.Page;//定义一个页面p为当前页面实例
Type pageType = p.GetType();
MethodInfo mi = pageType.GetMethod("BindAdsToPageByLocator");//母页方法名为BindAdsToPageByLocator
DataTable dt = (DataTable)mi.Invoke(p, new object[] { 0, 0, code});//BindAdsToPageByLocator方法0, 0, code为其3个参数