I have around 100 buttons in a list. Initially, I have set their visibility to false in the ASPX page. Now, I need to change the visibility to true from the code-behind when required.
Since there are too many buttons, it's not feasible to individually set Button1.Visible = true; for each one.
Is there an alternative method to change the visibility to true from the code-behind? I am planning to create a function that will take the button's ID as a parameter and then set its visibility to true.