Try this
if (TextBox1.Text != String.Empty)
Quote:
In .Net pre 2.0, "" creates an object while String.Empty creates no object. So it is more efficient to use String.Empty.
Source of information
.Length == 0 is the fastest option, but .Empty makes for slightly cleaner code.
So "" is pretty equivalent to .Empty, but still not as fast as .Length == 0.