Author: dmcbrier2 | Posted on: 2/8/2010 1:22:56 PM | Views : 330

I am trying to toggle the visible field in the DataGrip ItemTemplate.  True or False
Language --> ASP.NET VB , I am using Dreamweaver 8 this is their format for DB format -->  (Products.FieldValue("ProductName", Container)

I am getting the following Compiler Error Message: BC30201: Expression expected.
<asp:TemplateColumn HeaderText="TEST" Visible="True">
 <ItemTemplate>     
 <asp:Label ID="Test" runat="Server" Text='<%# Products.FieldValue("SKU", Container)%>' Visible='<%# IF (Products.FieldValue("ProductName", Container) Is DbNull.Value, False, True)%>' />  
 </ItemTemplate>
 </asp:TemplateColumn>
 
If I remove the code from visible
<asp:Label ID="Test" runat="Server ...

Go to the complete details ...