I inherited a web application written in c# which contains a datagrid. This dg has ItemTemplates, one of which has the following code:
<asp:textbox id="NewQuantity" onkeydown="processKeystroke(event);" runat="server" width="35px" columns="4" maxlength="3" text="" cssclass="EditTextBox"
Visible='<%# (DataBinder.Eval(Container.DataItem, "ProductID") == "") || (DataBinder.Eval(Container.DataItem, "ProductID") == DBNull.Value)? false:true %>'>
If I understand the code correctly, the textbox will either be Visible or not Visible dependant on whether or not the ProductID is Empty || Null.
Trouble is, the condition always seems to be 'True' even when the data is an Empty String or Null.
An example of the data from my db:
PL_ID ProductID ModelName
What could be causing the condition to always result in True?