Month: December 2013
-
How to use trim for c#.net when its null
How to use trim for c#.net when its null ? More body will tell you that //============================ string txt=null; string mystring=""; if(txt!=null){ mystring=txt.Trim(); } //============================ OK,you know,some times we have more string need to check when form submit . This is too tired . We all need a easy way for us . let me show…