Re: ASP .NET Web Controls

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: codeWarrior (anonymous_at_discussions.microsoft.com)
Date: 05/14/04


Date: Fri, 14 May 2004 03:26:08 -0700

If I do it on the Repeater1_ItemCommand, will it then output the HTML? I've tried this, and because it's initially invisible, the HTML isn't rendered. In other words, when I set the visible property to true, it still doesn't show up.

                private void repeaterNameHere_ItemCommand(object sender, RepeaterCommandEventArgs e)
                {
                        System.Web.UI.Control ctl = e.Item.FindControl("commentTablel").Visible = true;
                }

I know it gets in here, due to the break point I inserted. Also the ctl is set to the correct control when examined in the Autos pane.