这个应该是你执行数据库查询时没打开数据库吧
SqlConnection connect = new SqlConnection(connectString)建立连接connect.Open()打开连接
然后再一次创建conmand等等...试试
sql=select SortName,SortType,SortURL,sortID,(select count (*) from AspCms_Sort as a where a.ParentID=b.sortID) as subcount,SortFolder,SortFileName,GroupID,Exclusive from AspCms_Sort as b where LanguageID=1 and SortStatus=1 and ParentID={aspcms:topsortid} order by SortOrder asc欢迎分享,转载请注明来源:内存溢出
评论列表(0条)