怎么就没人理我,发了三个帖,分都散出去,三天了,就是从多个表构成的数据集里取出一列
string Sql1 = "select Title,CategoryID from blog_LinkCategories where blog_LinkCategories.ParentID=-1 and blog_LinkCategories.CategoryType = 6 And blog_LinkCategories.Active = 1 Order BY blog_LinkCategories.UpdateTime desc";
string Sql2 ="select blog_Content.Title,blog_Content.ID,blog_LinkCategories.CategoryID from blog_LinkCategories left outer join blog_Links on blog_LinkCategories.CategoryID = blog_Links.CategoryID left outer join blog_Content on blog_Links.PostID = blog_Content.ID where blog_LinkCategories.ParentID=-1 and blog_LinkCategories.CategoryType = 6 and blog_LinkCategories.Active = 1 Order by DateAdded desc";
他们都构成了myDateSet这个DataSet
我现在要做一个Reapeater嵌套
myDataSet.Relations.Add("myRelation",myDataSet.Tables[0].Columns["CategoryID"],myDataSet.Tables[1].Columns["CategoryID"]);
编译后说
myDataSet.Tables[1]不存在
http://community.csdn.net/Expert/topic/3872/3872263.xml?temp=.3927576
http://community.csdn.net/Expert/TopicView.asp?id=3872023
问了好几天了,分都散出去