I have a data grid that creates a checkbox ONLY for specific records. (ex.
This works fine on my test server (WinXP) but on my productioin server I get this message:
System.MissingMemberException: Public member 'isSpray' on type 'weddings' not found.
Why do I get this?
Here is the code for isSpray:
Code:
<ItemTemplate>
<asp:CheckBox id="cbSpray" runat="server" Visible='<%# isSpray(container.DataItem ("spPrice")) %>'>
</asp:CheckBox>
</ItemTemplate>
This works fine on my test server (WinXP) but on my productioin server I get this message:
System.MissingMemberException: Public member 'isSpray' on type 'weddings' not found.
Why do I get this?
Here is the code for isSpray:
Code:
Public Overloads Function isSpray(ByVal spPrice As DBNull) As Boolean
Return False
End Function
Public Overloads Function isSpray(ByVal spPrice As String) As Boolean
If spPrice = "" Then
Return False
Else
Return True
End If
End Function