I have few fields in my list in which some fields are coming null as they dont have records in underlying table. So while binding it with repeater control i am getting NullReferenceException.
So, what should i do, handle null while binding or is there any other approach, so that repeater or datalist or gridview will handle the null value automatically.
Note: I am using <%# Eval("FieldName")%> in my aspx page and from database FieldName is null.
Please guide me….
1 Answer