I have two user controls I have some functions written on those two controls. Is it possible to invoke a function written on one user control from another user control. Pls provide the code for 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.
It is good only when one user control is always contained in another. Other wise you don’t know if both controls exists on the page. It is best to use the containing page as a mediator to call the methods (don’t know what this pattern is called). to call methods in User Control from an asp.net page you need to write public/internal methods in user control and simply call it on instance of user control in page.