I am trying to create a simple Examine collection of first name, middle name, last name. If they middle name is empty or null, that row is not added to the dictionary so any code that later tries to display this missing value fails.
Is there a way to force the key to be created, perhaps as an empty string? or must I check for the missing key when I try and display it in my repeater control?
Nulls cause missing keys in Examine collection
I am trying to create a simple Examine collection of first name, middle name, last name. If they middle name is empty or null, that row is not added to the dictionary so any code that later tries to display this missing value fails.
Is there a way to force the key to be created, perhaps as an empty string? or must I check for the missing key when I try and display it in my repeater control?
is working on a reply...