读书人

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

发布时间: 2012-03-06 20:47:55 作者: rapoo

显示多列消息(急急急急) 新手求教
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);
}

读书人网 >asp.net

热点推荐