UserControl uc = null;
uc = (UserControl)LoadControl("UserControl.ascx");
Type ucType = uc.GetType();
MethodInfo mi = ucType.GetMethod("FillData");
string returnValue=(string)mi.Invoke(uc, new object[] { arg1, arg2, arg3});
Some Technical Log about information technology, including system administration, programming and network
UserControl uc = null;
uc = (UserControl)LoadControl("UserControl.ascx");
Type ucType = uc.GetType();
MethodInfo mi = ucType.GetMethod("FillData");
string returnValue=(string)mi.Invoke(uc, new object[] { arg1, arg2, arg3});
No comments:
Post a Comment