Web Forms Control Stays visible ...

Discussion in 'ASP .Net Building Controls' started by Olivier, Sep 3, 2003.

  1. Olivier

    Olivier Guest


    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 :
    <asp:linkbutton visible="<%# IsEditable %>" runat="server">Test</asp:linkbutton>

    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 ?


    Olivier, Sep 3, 2003
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.