Text box validation not working

前端 未结 7 1442
[愿得一人]
[愿得一人] 2020-12-12 07:40

Right now the code below tests for a blank text box. If it is blank it returns the error stated below the if statement. That works fine, but I also want it to check for wh

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 08:04

    if (string.IsNullOrEmpty((TextBox1.Text ?? string.Empty).Trim()))
    

提交回复
热议问题