更新时间:2023-11-30 16:49:28
在更新面板旁边,我放置了很多面板.
现在我要显示面板.,请给我一个解决方案.
Panel是服务器端控件,可以使用其ID在服务器端直接访问.
因此适用于:
nside the update panel i placed lot of panel.
now i want to show the panel ., please give me a solutuion.,
Panel is a server side control that can be accessed directly on server side using it''s ID.
Thus for:
<asp:Panel ID="Panel1" runat="server">
做:
Do:
Panel1.Visible = true; // to show panel
Panel1.Visible = false; // to hide panel
要添加-在更新面板中还是不在更新面板中都没有关系.
To add on - it does not matter if it is in or out of Update Panel. Update panel is just a region defined for partial update if needed.
TabContainer1.FindControl("tab3").FindControl("P" + i.ToString()).Visible = true;
TabContainer1.FindControl("tab3").FindControl("P" + i.ToString()).Visible = true;