用 testlab.Text=st[0];试试看显示的值是什么?--------------------------------
AspNetPager 免费分页控件4.2版发布,同时发布最新源代码,欢迎下载:http://www.webdiyer.com
AspNetPager 免费分页控件4.2版发布,同时发布最新源代码,欢迎下载:http://www.webdiyer.com
赋值时用tostring了吗?
string[] st = new string[6];
....
if(st[0]!=null)
{
testlab.Text=st[0];
}
else
{
testlab.Text="not ok";
}
用Equal()有利于提高效率