[英]how to make text to get invisible from the page after a button click
您可以将所有控件都包含在ASP.NET Panel控件中,并根据条件在代码中隐藏/显示它们:
<asp:Panel ID="SearchPanel" runat="server">
<%--put all the controls here--%>
</asp:Panel>
然后在后面的代码中,只需使用面板控件的ID,即可更改可见性:-
SearchPanel.Visible = true;
SearchPanel.Visible = false;
通过使用面板,我能够解决问题。 页面的HTML代码为:
帐号
脚本名
市场价值 Panel1.Visible = false;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.