Buy Questpond's video subscriptions on
huge discount
.
Online: 2210
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Codes
>
Loading ...
Check string isnull or empty
Posted by
Rajni.Shekhar
under
ASP.NET
category on
3/26/2012
|
Points: 40
| Views : 2873
Post Code
|
Search Codes
|
Code Home
string.IsNullOrEmpty(strObject); returns true or false.
Alert Moderator
Bookmark It
Comments or Responses
Posted by:
Sheonarayan
on: 3/26/2012 Level:
HonoraryPlatinum
| Status:
[Administrator]
|
Points: 10
In case you want to check for the null, empty and white space too, there is another method called
IsNullOrWhiteSpace
string.IsNullOrWhiteSpace(strng)
If either of the null, empty or white space is there in the
strng
variable, it returns true.
Thanks
Posted by:
Akiii
on: 3/26/2012 Level:
Bronze
| Status:
[Member]
|
Points: 10
Both are very useful !
Thanks and Regards
Akiii
Posted by:
Rajni.Shekhar
on: 3/27/2012 Level:
Bronze
| Status:
[Member]
|
Points: 10
thanks Sheonarayan for sharing another method of string.
Login to post response
Latest Code Snipptes
writing Custom pagination html code in python and django
Code snippet for setInterval
Azure Function - Connect to MS Dynamics using application user - .NET core 3.1
MS Dynamics 365- Custom action - Read input parameter values from plugin
MS Dynamics 365- Disassociate record from N-N relationship entity
Search box with icon in Navbar in bootstrap 4
Remove HTML tags using Regular Expression in C#
MS Dynamics 365- Close Quote from C# / Custom action
How to show and hide submenu in tabs using jquery
More ...