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

怎么数据库中空值提取出来后变为&nbsp

2011-12-26 
如何数据库中空值提取出来后变为 数据库中字段为NULL,当通过提取到GridView1后,然后通过this.water_star.T

如何数据库中空值提取出来后变为 
数据库中字段为NULL,当通过提取到GridView1后,然后通过
 this.water_star.Text = GridView1.SelectedRow.Cells[2].Text;
后,显示值为“ ”,如何解决,我要他还是为空。

[解决办法]

C# code
if(GridView1.SelectedRow.Cells[2].Text =="&bnsp")    this.water_star.Text ="";else    this.water_star.Text =GridView1.SelectedRow.Cells[2].Text ; 

热点排行