用datalist最好 只要設repeatcolumns就可
解决方案 »
- 求正则........................................................................新手在线等
- 问个sql语句,立马结贴
- 用Cookies验证在没有登录时跳转到登录页面该怎么写
- MVC3 里面 如何劫持 Controllers的Action 100分啦 大家帮帮忙
- 各位熟悉ajax的朋友能否给个学习ajax的建议!谢谢!
- 为什么在xp下开发的.net代码在server2003上不能调试?
- 上传文件问题
- 有多少人在做B/S的时候是要求完全符合W3C的标准的呢?
- 问一个页面加载次序的问题
- 关于调用Reporting Services 报表问题
- 推荐几个学习C#的技术网站
- 诚邀各位 .NET爱好者,
int j=0;
for(int i=0;i<ds.Tables["Pic_View"].Rows.Count;i++){
if(i%4==0){
j=j+1;
}
if(1%4==1){
ds.Tables["Tmp_Pic"].Rows[j].["id1"]=ds.Tables["Pic_View"].Rows[i].["id"];
ds.Tables["Tmp_Pic"].Rows[j].["cate1"]=ds.Tables["Pic_View"].Rows[i].["CATEGORY"];
}
if(1%4==2){
ds.Tables["Tmp_Pic"].Rows[j].["id2"]=ds.Tables["Pic_View"].Rows[i].["id"];
ds.Tables["Tmp_Pic"].Rows[j].["cate2"]=ds.Tables["Pic_View"].Rows[i].["CATEGORY"];
}
if(1%4==3){
ds.Tables["Tmp_Pic"].Rows[j].["id3"]=ds.Tables["Pic_View"].Rows[i].["id"];
ds.Tables["Tmp_Pic"].Rows[j].["cate3"]=ds.Tables["Pic_View"].Rows[i].["CATEGORY"];
}
if(1%4==4){
ds.Tables["Tmp_Pic"].Rows[j].["id4"]=ds.Tables["Pic_View"].Rows[i].["id"];
ds.Tables["Tmp_Pic"].Rows[j].["cate4"]=ds.Tables["Pic_View"].Rows[i].["CATEGORY"];
}
}
DataView dv = new DataView(ds.Tables["Tmp_Pic"]);
return dv;老是报CS1001: 应输入标识符