I have the following code:
<%# IIf(IsDBNull(Container.DataItem("idQuestionaire")), Me.pnlAdd.Visible = True, Me.pnlRemove.Visible = True)%>
<asp:Panel ID="pnlAdd" runat="server" Visible="false">
add
</asp:Panel>
<asp:Panel ID="pnlRemove" runat="server" Visible="false">
remove
</asp:Panel>
So I want that if the Container item is NULL that the "pnlAdd" is Visible.
But I get the following error:
pnlAdd is not member of mySite.aspx
IIfbelow the panels?