日期:2014-05-17 浏览次数:20535 次
public void ProcessRequest (HttpContext context)
{
string version = context.Request["version"];
if (version == "get_comapny_information")
{
json = get_comapny_information(myCommand, shoppingmall, name);
}
else if (version == "get_shipping_information")
{
json = get_shipping_information(myCommand, shoppingmall, name);
}
}
public void ProcessRequest (HttpContext context)
{
string version = "get_comapny_information";
MethodInfo method = this.GetType().GetMethod(version);//把fund 名字丢进去
if (method != null)
{
string json = (string)method.Invoke(this, new object[] {}); //for public string or else 用强转
}
}