ASP.Net Checkbox Doesn't Allow Setting Visible to True

Posted by Shawn Steward on Stack Overflow See other posts from Stack Overflow or by Shawn Steward
Published on 2010-04-21T17:16:00Z Indexed on 2010/04/21 17:53 UTC
Read the original article Hit count: 260

I'm working on an old web application in Visual Studio .Net 2003 (yeeich) and I'm having an issue with a Checkbox that will not set the Visibility to True.

It's declared as such:

Protected WithEvents chkTraining As System.Web.UI.WebControls.CheckBox 

and

<asp:CheckBox id="chkTraining" runat="server" Visible="False"></asp:CheckBox>

When I am debugging through the line that has:

chkTraining.Visible = True

it goes past it fine, but as I check this value on the very next line, chkTraining.Visible = False. What could possibly be going on here? There's no events firing off or anything else going on... this really is throwing me for a loop. Thanks for your help.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about visual-studio-2003