当前位置: 代码迷 >> ASP.NET >> 显示多列消息(急) 新手求教,该如何解决
  详细解决方案

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

热度:8044   发布时间:2013-02-25 00:00:00.0
显示多列消息(急急急急) 新手求教
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);
}
  相关解决方案