asp.net - ASP Is a foreach loop based on Button control on a Master page possible? -


I am trying to shut down all the buttons on the webpage dynamically for a practical group of users. So what I want to do is just set the visble and enable false.

So I'm feeling like something like this.

  foreach (master on button idvButton) {idvButton.Visible = false; IdvButton.Enable = false; }   

Any help is appreciated! Thanks!

How about it in the code of your child's page?

  Master (Master in B.T.N.Ph.org.Form.OptyType & Button; Button & gt; ()) {btn.Visible = false; Btn.Enabled = false; }    

Comments