首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

显示多列消息(急) 新手求教,该如何解决

2012-03-06 
显示多列消息(急急急急)新手求教IListAirCode arList new IListAirCode()for (int i 0 i arLi

显示多列消息(急急急急) 新手求教
IList<AirCode> arList = new IList<AirCode>();
  for (int i = 0; i < arList.Count; i++)
  {
  pwMSG.Text = arList[i].AirNum;
  pwMSG.Message = arList[i].AirName;  
  }
怎么控制它显示多条数据?

[解决办法]
pwMSG.Text += arList[i].AirNum;
pwMSG.Message += arList[i].AirName;

[解决办法]
IList<AirCode> arList = new IList<AirCode>();
for (int i = 0; i < arList.Count; i++)
{
pwMSG.Text += string.Format("i={0},AirNum={1} ",i,arList[i].AirNum);
pwMSG.Message += string.Format("i={0},AirName={1} ",i,arList[i].AirName);
}

热点排行