DataSet中的数据在与GridView中绑定数据中间的转换 select CMS_Articles.title,ArticleFrom,CMS_Categories.Title from CMS_Articles join CMS_Categories on CMS_Categories.CategoryID=CMS_Articles.CategoryID 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //CMS_Articles 新闻列表,CMS_Categories新闻类别表CMS_Articles.title新闻标题,ArticleFrom新闻来源,CMS_Categories.Title新闻类别标题。两个表进行联结查询,所以建议你弄两个表select CMS_Articles.title,ArticleFrom,CMS_Categories.Title from CMS_Articles join CMS_Categories on CMS_Categories.CategoryID=CMS_Articles.CategoryID 可以实现。GridView1_OnRowDataBound(object sender,GridViewRowEventArgs e){ if(e.Row.RowType == DataControlRowType.DataRow) Case Int.Parse(e.Row.Cells[index].Text) 1: e.Row.Cells[index].Text="一等品"; break; 2: e.Row.Cells[index].Text.="二等品"; .... }} 后台控件生存出来的【label】怎么去掉 小弟求一个正则表达式 谁用过51地图的?帮忙啊,怎么显示数据库里的坐标? 自定义控件的问题.. http://www.360doc.com这个HTML编辑器是哪儿弄的? 这个复杂的查询应该怎么办,大家帮帮忙,非常急,马上结分 求助:怎样学好ASP.NET? asp中寫Response.cookies ("ITEM1")("SUBA")="Standy"在dotnet(C#)中如何讀出 奇怪,我的WEB服务器有不好用了,大家帮忙来看看. (fzymr) 急!急!急!棘手! 在线等待! 股票动态图怎么做? 网站有中文目录如何能让搜索引擎正常收录
CMS_Articles.title新闻标题,ArticleFrom新闻来源,CMS_Categories.Title新闻类别标题。
两个表进行联结查询,所以建议你弄两个表select CMS_Articles.title,ArticleFrom,CMS_Categories.Title from CMS_Articles
join CMS_Categories
on CMS_Categories.CategoryID=CMS_Articles.CategoryID
GridView1_OnRowDataBound(object sender,GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
Case Int.Parse(e.Row.Cells[index].Text)
1:
e.Row.Cells[index].Text="一等品";
break;
2:
e.Row.Cells[index].Text.="二等品"; ....
}
}