Author: Naom | Posted on: 7/8/2008 5:43:42 PM | Views : 1290

Hi everybody,

I have a field, that can be either value or 0 or null (last two cases should be the same - it means the field is empty) . 

I found this nice page
http://weblogs.asp.net/scottgu/archive/2007/09/20/the-new-c-null-coalescing-operator-and-using-it-with-linq.aspx

However, I could not figure out how to apply this idea in my very complex case.

I have currently

<span>  <%# (DataBinder.Eval(Container.DataItem, "SpouseID").ToString() != "")
? Eval("SpouseID", "<a href=\"javascript:void(0)\"
onClick=\"openPeopleID('{0}')\">Spouse's Information</a>") :
"<a href=\"javascript:void(0)\" onClick=\"openCreateID('motherName','A ...

Go to the complete details ...