Saturday, 15 June 2013

Evaluate with conditions

if you want to test against a condition and two possible results and return boolean when databinding then this is quite useful. You can also use this is your code behind which makes it look less messy i.e. with anonymous types <%# Eval("yourfield") == null ? String.Empty : Eval("yourfield")%>

No comments: