ASCX Controls ASP.NET - Cannot Find Visible Method

On a specific page, I have an ascx control that contains a table.

Now I want this control to be visible / invisible, but the invisible method does not show up in intellisense.

The only methods are 1) Equals and 2) ReferenceEquals

Home page

<VPM:VotingPolls Runat="server"></VPM:VotingPolls>

      

thank

+1


source to share


3 answers


Thanks for the solution

The problem was that the id was not set.

<VPM:VotingPolls ID="VPS" Runat="server"></VPM:VotingPolls>

      



then

VPS.Visible=True/False

      

+5


source


Make sure your markup is well formed and that you have the correct title bar for the ascx control on your page. 99% of the time, if intellisense doesn't work, it means there is something wrong with the code and / or markup.



+1


source


Sometimes intellisense does not display available attributes. But the visible attribute will be available. So just type visible = 'true / false'. This should work.

0


source







All Articles