O
Olivier
Hello,
Inside my UserControl, I'm trying to dynamically hide some server side controls when the connected user is not authenticated.
I use the following synthax :
Public class MyClass
inherits Usercontrol
public property IsEditable() as boolean
Return False
End Property
End Class
Public Class MyUserControl
inherits MyClass
// some custom code //
End Class
Within MyUserControl :
<table>
<tr>
<td>
<asp:linkbutton visible="<%# IsEditable %>" runat="server">Test</asp:linkbutton>
</td>
</tr>
</table>
My problem is that although the IsEditable variable returns False, the linkbutton stays visible ...
(If I display the value of IsEditable , I get False)
Could someone please help me ?
Thanks,
Olivier.
Inside my UserControl, I'm trying to dynamically hide some server side controls when the connected user is not authenticated.
I use the following synthax :
Public class MyClass
inherits Usercontrol
public property IsEditable() as boolean
Return False
End Property
End Class
Public Class MyUserControl
inherits MyClass
// some custom code //
End Class
Within MyUserControl :
<table>
<tr>
<td>
<asp:linkbutton visible="<%# IsEditable %>" runat="server">Test</asp:linkbutton>
</td>
</tr>
</table>
My problem is that although the IsEditable variable returns False, the linkbutton stays visible ...
(If I display the value of IsEditable , I get False)
Could someone please help me ?
Thanks,
Olivier.