UpdatePanel.Visible = true has no effect

igor picture igor · Feb 26, 2009 · Viewed 12.8k times · Source

There is a wide task. There is an update panel upDetails, which displays details table (initialy visible = false) when user selects any item from master table, we should set upDetails.Visible = true;

But it soesn't work whatever place/event I had placed it - neither BL methods, neither pre-render. It still be invisible

But when I do not make it initialy invisible, all works fine

What do I do wrong?

Thanks in advance

Answer

splattne picture splattne · Feb 26, 2009

Are you talking about the ASP.NET Ajax UpdatePanel Control? Try to put a "real" Panel Control (asp:Panel) inside the UpdatePanel and set the visibilty false/true on that control and leave the UpdatePanel visible.