if (!string.IsNullOrEmpty(userid)) { InitPage(); } IsNullOrEmpty 同时测试String是否为nullNothingnullptrnull引用或其值是否为Empty
C#日常总结
原文:http://www.cnblogs.com/gqx-html/p/6229257.html