c# - How do I handle null values in Linq2Sql list -


There are a few fields in my list in which some fields are empty because they do not have records in the underlying table, so it is called repeater control I'm receiving NullReferenceException while binding.

So, what should I do, handle the null during binding or any other approach, so that the repeater or the datelist or the gridwid can handle zero value automatically.

Note: I & lt;% # Eval ("FieldName")%> in and from the database FieldName is empty .

Please guide me ....

  & lt; % # Eval ("FieldName") ?? ""% & Gt;    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -