How to hide and display asp:buttons in asp.net from code behind?
问题 I am working on asp.net web application. In one Page I have two asp buttons. I want to display them in one condition otherwise I don't want to display them. So I'm trying to do the same like this. But Its not working. I can't find the reason behind it. Please tell me where is the issue. To Hide Buttons if (!IsPostBack) { ButtonReplaceId.Style.Add("display", "none"); ButtonAssociateRules.Style.Add("display", "none"); } To display buttons protected void ApplyAssociation(object sender, EventArgs