if (this.txtloginId.Text.Trim().Length == 0) //将txtloginId改成你会员名后面那个框的id就行了 { this.Label1.Text = "用户名不能为空!"; return;}
if (string.IsNullOrEmpty(会员名)) Response.Write(""); 求推荐