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 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 Please guide me .... NullReferenceException while binding.
& lt;% # Eval ("FieldName")%> in
FieldName is
empty .
& lt; % # Eval ("FieldName") ?? ""% & Gt;
Comments
Post a Comment