Find Control
-
-
Hello I work with a master page and content page i try to find a Button in my content page, where i want to write my code behind because i get the ID of this Button from the database so any help will be greatly appreciated Thanks in advance
Assaf
Where is the control located which you are trying to find... In master or in content page...? In case, the control is located in master page then use Button btn = Master.FindControl("") as Button; replace with the id of the button fetched from database.
-
Where is the control located which you are trying to find... In master or in content page...? In case, the control is located in master page then use Button btn = Master.FindControl("") as Button; replace with the id of the button fetched from database.