What is the difference between (“”) and (null)

前端 未结 9 1200
鱼传尺愫
鱼传尺愫 2021-01-04 18:33

While trying to set Validations i initially encountered some problems with checking if a textbox is null, i tried using

    private void btnGo_Click(object s         


        
9条回答
  •  無奈伤痛
    2021-01-04 19:17

    You can use IsNullOrWhiteSpace to do text box input validation. It checks for null, empty string or white space (tab, space, etc.). http://msdn.microsoft.com/en-us/library/system.string.isnullorwhitespace.aspx

提交回复
热议问题