I have an user control in master page with id ‘ucTopUser’ and a button ‘btnSub’.I need to hide the both control from my current aspx page.How can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get the Masterpage from your aspx page you can use
this.Master, and to hide the elements you can set theirVisibleproperty tofalse.http://msdn.microsoft.com/en-us/library/system.web.ui.page.master.aspx
http://msdn.microsoft.com/en-us/library/486wc64h.aspx
http://msdn.microsoft.com/en-us/library/system.web.ui.control.visible.aspx