Hi
I am trying to refernce an invisble panel and a %# DataBinder.Eval(Container.DataItem, "Department") %> is equal to a specific department then display the panel.
the code is ;
<panel id="pnlName" visible="false" runat="server">
<td bgcolor="#B5C7DE">
<b>Ticket No:</b></td>
<td bgcolor="#E4E4E4" width="100">
<%# DataBinder.Eval(Container.DataItem, "TicketNo") %>
</td>
</panel>
The dataset is called rsAction
dim pnlName as Panel
If rsAction.items is "Maintenance" then
pnlName.Visible = true
end if
Any help with the if statement would really be appreciated
Thanks
I am trying to refernce an invisble panel and a %# DataBinder.Eval(Container.DataItem, "Department") %> is equal to a specific department then display the panel.
the code is ;
<panel id="pnlName" visible="false" runat="server">
<td bgcolor="#B5C7DE">
<b>Ticket No:</b></td>
<td bgcolor="#E4E4E4" width="100">
<%# DataBinder.Eval(Container.DataItem, "TicketNo") %>
</td>
</panel>
The dataset is called rsAction
dim pnlName as Panel
If rsAction.items is "Maintenance" then
pnlName.Visible = true
end if
Any help with the if statement would really be appreciated
Thanks