Wednesday, August 10, 2011

@if (ViewBag.Foo != null) works a lot better than @if (!ViewBag.Foo.IsNullOrEmpty())

@if (ViewBag.Foo != null)

...works a lot better than...

@if (!ViewBag.Foo.IsNullOrEmpty())

No comments:

Post a Comment