DataSet ls = BLL.GetList("ArtColumnSubID='0'");
List<LCKJ.Model.ArtColumn> list = ls.FindAll(g=> g.ArtSubColumnID==0 && g.ArtShow ==0 && g.ArtPage ==0).OrderBy(g => g.ArtSubColumnID.Value ).ToList();
if (list.Count > 0)
{
int num = 0;
foreach (var item in list)
{
num++;
string path = string.IsNullOrEmpty(item.ArtJudg) ? "javascript:void(0)" : "../Front/" + item.ArtJudg;
ltrPath.Text += "<li><a href=" + path + "?num=" + num + "><span>" + item.ArtColumnName + "</span></a></li>";
}
ltrPath.Text += "<li><a href=\"../Front/About.aspx?num=" + (num + 1) + "\" title=\"关于我们\"><span>关于我们</span></a></li>";
}
------解决方案--------------------------------------------------------
有什么问题,类型不一致,当然不能相等
------解决方案--------------------------------------------------------
- C# code
DataSet ls = BLL.GetList("ArtColumnSubID='0'");//这报错?你这个方法返回的是啥类型?DataSet?
------解决方案--------------------------------------------------------
那你为啥 要把它改成DataSet?
不同的类型 当然不可能成功拉