B
Björn Jansson
Hi,
I hope this is the right forum for my question.
I have a Repeater control in which I have two panels. Only one panel should
be visible at a time. I want to set which one dynamically, so I tried the
following:
<asp
anel id="pnlDeliveryInfo" runat="server" Visible='<%#
IsNotNull((object)DataBinder.Eval(Container.DataItem, "Delivery")).ToString()
%>'>
Where IsNotNull is a function taking an object an returning a string (I also
tried to return a bool).
When I try to run i get the following compilation error:
"CS0030: Cannot convert type 'string' to 'bool'"
Anyone has any idea what I may be doing wrong?
Thanks!
Regards,
Björn Jansson
I hope this is the right forum for my question.
I have a Repeater control in which I have two panels. Only one panel should
be visible at a time. I want to set which one dynamically, so I tried the
following:
<asp
IsNotNull((object)DataBinder.Eval(Container.DataItem, "Delivery")).ToString()
%>'>
Where IsNotNull is a function taking an object an returning a string (I also
tried to return a bool).
When I try to run i get the following compilation error:
"CS0030: Cannot convert type 'string' to 'bool'"
Anyone has any idea what I may be doing wrong?
Thanks!
Regards,
Björn Jansson