Web Forms Control Stays visible ...

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top