Hmmm. A couple of things:
Since you are using the IIF statement this tells me that you are using
VB since there is no IIF in C#. However you are using the C# equality operator '==' which is incorrect; you should simply use '=' or 'Is' as I have done below. Next it appears that you are overcomplicating things with your IIF. Something like this should suffice: <%# IIf(Eval("TriplePrice") Is DbNull.Value, "false","true") %> So if the the value TriplePrice is null the checkbox will not be visible otherwise it will.
Honestly .aspx pages are for markup and UI elements, not conditional logic. I would definately handle this determination of visiblity on the server side in the ItemDataBound event (or similar event) of whatever control this checkbox resides in. An example of th is would be:
Protected Sub rpt_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs)
If e.Item.ItemType = ListItemType.AlternatingItem OrElse e.Item.ItemType = ListItemType.Item Then
Dim obj as Object = DirectCast(e.Item.DataItem, Object)
Dim chk as CheckBox = DirectCast(e.Item.FindControl("CheckBox1"), Literal)
If obj IsNot Nothing Then
If obj.TripleValue IsNot Nothing Then
chk.Visible = True
chk.Text = Convert.ToString(obj.TripleValue)
End If
End If
End If
End Sub
Then define your CheckBox on the UI side as:
asp Code:
<asp:CheckBox Visible="False" ID="CheckBox1" runat="server" Font-Bold="False" ForeColor="#000040" />
hth
Doug
__________________
===============================================
Doug Parsons
Wrox online library:
Wrox Books 24 x 7
Did someone here help you? Click

on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================