如何在数据集中检索布尔值,我正在使用Visual Studio 2003,我尝试了以下代码,但它不起作用:
//if product inactive, don't display, and redirect to main page
if((dbDataSet.Tables["productGeneral"].Rows[0]["Active"].Equals(0)))
我甚至尝试了,但没有起作用:
if((dbDataSet.Tables["productGeneral"].Rows[0]["Active"].toString() == false)
列名为["active"],该列中的值为True或False,在使用SQL Server 2000时。