Expression with string.IsNullOrEmpty doesn't work
Posted: Fri Jan 17, 2020 12:44 pm
Hi,
we've been using Stimulsoft with ASP.NET MVC for years. After migrating to the ASP.NET Core version (on .NET Framework), however, conditional expressions with string.IsNullOrEmpty don't work anymore.
Examples:
This expression worked before, but doesn't work anymore:
The condition always returns FALSE.
This still works:
The condition works correctly.
Any ideas what causes this?
Thanks in advance.
we've been using Stimulsoft with ASP.NET MVC for years. After migrating to the ASP.NET Core version (on .NET Framework), however, conditional expressions with string.IsNullOrEmpty don't work anymore.
Examples:
This expression worked before, but doesn't work anymore:
Code: Select all
{(string.IsNullOrEmpty(Parameters.Location.Uri)) ? "unknown" : Parameters.Location.Uri}
This still works:
Code: Select all
{(Parameters.Location.Uri == null || Parameters.Location.Uri == "") ? "unknown" : Parameters.Location.Uri}
Any ideas what causes this?
Thanks in advance.