Expression with string.IsNullOrEmpty doesn't work

Stimulsoft Reports.WEB discussion
Post Reply
ChrisDA
Posts: 10
Joined: Wed Oct 12, 2016 8:09 am

Expression with string.IsNullOrEmpty doesn't work

Post by ChrisDA »

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:

Code: Select all

{(string.IsNullOrEmpty(Parameters.Location.Uri)) ? "unknown" : Parameters.Location.Uri}
The condition always returns FALSE.

This still works:

Code: Select all

{(Parameters.Location.Uri == null || Parameters.Location.Uri == "") ? "unknown" : Parameters.Location.Uri}
The condition works correctly.

Any ideas what causes this?

Thanks in advance.
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: Expression with string.IsNullOrEmpty doesn't work

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue on our sample.

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
Post Reply