aspx反射调用方法

string name = base.Request["action"];
                object obj2 = base.GetType().InvokeMember(name, BindingFlags.InvokeMethod, null, this, new object[0]);
                if (obj2 != null)
                {
                    s = obj2.ToString();
                }

传入方法名即可调用方法

原文地址:https://www.cnblogs.com/codeDevotee/p/11330703.html