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

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -