Hi all,
i have one method in master page and a label in same master page, and their is one method which changes text in label, and i want to call the same method in Master page from my Usercontrol.....
Please help me...
Thanks in advance.....
Try This
Step 1: Add a MasterType directive in your aspx page Step 2: Create a public method in your master page which will call your usercontrol method. Step 3: From your page you can call that method using Master.Method()
1. First the method must be public
2. Then you can access it in this way
(this.Page.Master as MyMasterPage).MethodName();
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.