dr["F_Shen"].ToString()== "未审"  试一下

解决方案 »

  1.   

    if(this .lblshen .Text  == "未审") 
      

  2.   


           string strF_Shen = string.Empty;
                    if (dr["F_Shen"] != System.DBNull.Value)
                        strF_Shen = dr["F_Shen"].ToString();                if (strF_Shen == "未审")
                        this.Button2.Visible = false;
      

  3.   

       this .lblshen .Text = dr["F_Shen"].ToString ();//这是从数据库中搜索出来的值. 
                if(dr["F_Shen"].ToString() == "未审") 
                { 
                    this.Button2.Visible = false; 
                } 
                else
                {
                    this.Button2.Visible= true;
                }
      

  4.   

    this .lblshen .Text = dr["F_Shen"].ToString ();//这是从数据库中搜索出来的值. 
                if(dr["F_Shen"].enqul("未审")) 
                { 
                    this.Button2.Visible = false; 
                } 
                else
                {
                    this.Button2.Visible= true;
                }