Asp.net 面板可见性在“更新”面板内不起作用
我有一个更新面板,其中包含一个标签和一个面板,两个面板都有“visible=false”。当用户单击报告按钮时,会出现一个请等待弹出窗口,在显示结果后,它工作正常,但当我发布它时,面板可见性不工作,什么也没有发生!!!!!这是我的密码:Asp.net 面板可见性在“更新”面板内不起作用,asp.net,updatepanel,panel,visibility,Asp.net,Updatepanel,Panel,Visibility,我有一个更新面板,其中包含一个标签和一个面板,两个面板都有“visible=false”。当用户单击报告按钮时,会出现一个请等待弹出窗口,在显示结果后,它工作正常,但当我发布它时,面板可见性不工作,什么也没有发生!!!!!这是我的密码: <asp:UpdatePanel> <ContentTemplate> <p><asp:Label ID="Label_err" runat="server" ForeColor="Red" Visible =
<asp:UpdatePanel>
<ContentTemplate>
<p><asp:Label ID="Label_err" runat="server" ForeColor="Red" Visible ="False"></asp:Label></p>
<asp:Panel ID="Panel_ReportResults" runat="server" Direction="RightToLeft" Font-Names="Tahoma" Visible="False">
<!--a table which contains a link and a link button is here-->
</asp:Panel>
</ContentTemplate>
标签上的一切都很好,而且在发布之前也很好!请帮忙!谢谢 如果您有javascript错误,请打开控制台找到它们并在此处显示。是的……这就是问题所在……非常感谢:)
if (!Error)
{
log.SaveReporting();
Panel_ReportResults.Visible = true;
Label_err.Visible = false;
}
else
{
Panel_ReportResults.Visible = false;
Label_err.Visible = true;
}