If r("orderdesc") Is DBNull.Value Then
                    Me.Ntxtorder.Text = ""
                Else
                    Me.Ntxtorder.Text = r("orderdesc")
                End If

解决方案 »

  1.   

    if (r("orderdesc") == DBNull.Value) 

     this.Ntxtorder.Text = ""; 

    else 

     this.Ntxtorder.Text = r("orderdesc"); 
    }
      

  2.   

    http://www.developerfusion.com/utilities/convertcsharptovb.aspx这里有VB。NET转C#和C#转VB。NET的功能,你以后可以把代码放到上面转换下,不能保证100%正确,但是基本很少错误。。
      

  3.   

    收藏 http://www.developerfusion.com/utilities/convertcsharptovb.aspxThk
      

  4.   

    ...http://www.developerfusion.com/utilities/convertvbtocsharp.aspx