Thursday, March 26, 2009

Find Null or Empty string c# asp.net


Old Method:
if(null != id && 0 != id.length)
{

}

New:-
if(!String.IsNullOrEmpty(id))
{

}

No comments: