this.TextBox1.Text空字符问题
来源:百度知道 编辑:UC知道 时间:2024/06/22 03:37:03
string str= Convert.ToString(this.TextBox1.Text.Trim());
if (str == null)
{
this.TextBox1.Text = "safds";
}
TextBox1.Text的值为空,但是取出的结果为"",用str == null判断不是空,有什么办法可以判断TextBox1.Text的字段为空,谢谢!
if (str == null)
{
this.TextBox1.Text = "safds";
}
TextBox1.Text的值为空,但是取出的结果为"",用str == null判断不是空,有什么办法可以判断TextBox1.Text的字段为空,谢谢!
if(String.IsNullOrEmpty(str)){
this.TextBox1.Text = "safds";
}
string str=this.TextBox1.Text.Trim();//只到这就行了,不用Convert....
if(str=="")
{
}
本来就是字符串你还tostring 干什么。。
if(string.IsNullOrEmpty(TextBox1.Text))
TextBox1.Text.Length == 0
if(str=="")
This argument doesn't hold water.
找一首英文歌曲:Don't Need This
this coat doesn't suit me
VF中 this.enabled=.t.是什么意思
this train don't stop,
TextBox1.Text = Mid(TextBox1.Text, 1, Len(TextBox1.Text) - 1)什么意思
谁知道you can't touch this 的歌词?
Don’t forget____this magazine to Lisa this afternoon .
This kind of soap can‘t _______ children _____pathogen. (4
I DIDN’T REALIZE HOW MUCH THIS MEANT TO YOU