错误:
如下:
ArrayList arr = ctl2.GetArticleManagerModules(this.PortalId);
int a = Convert.ToInt32(arr)..
直接赋值是不对的,应该察看GetArticleManagerModule这个函数的返回值类型,然后赋值int a = Convert.ToInt32(arr)..
如下:
ArrayList a = ctl2.GetArticleManagerModules(this.PortalId);
CategoryInfo info1 = (CategoryInfo)a[0];
CategoryInfo info1 = (CategoryInfo)a[0];