If statement does not execute statement even if true

In your specific case, initialize your string abc as:

string abc = string.empty

This will always ensure that abc has an empty value during initialization. Then once you get your data from your Session, abc is set accordingly.

Leave a Comment