Who ever thought this was a good idea? It feels wrong on so many levels.
Dim enableRegistration As Boolean = CBool(IIf(CBool(DataBinder.Eval(e.Item.DataItem, "IsOnlineRegistration")), IIf(CInt(DataBinder.Eval(e.Item.DataItem, "EventSize")) = 0 Or CInt(DataBinder.Eval(e.Item.DataItem, "EventSize")) = -1 Or (CInt(DataBinder.Eval(e.Item.DataItem, "EventSize")) - CInt(DataBinder.Eval(e.Item.DataItem, "Registrants"))) > 0, True, False), False))
And since we code review like the mafia, put the poor soul out of his misery .
This blog contains the thoughts and discoveries of Tim Barcz, a technologist with a interests in computer programming technologies.