Reputation: 1025
Is there any way to get access to methods that are on other pages? I.E Using methods that are in the SecondPage class in the Mainpage class? Or is there way of making methods global ( i.e methods that span all pages ) ?
Upvotes: 0
Views: 635
Reputation: 729
You should use public static methods
This is a bad approach , you can make a service class
Upvotes: 0
Reputation: 1025
Just found a way to solve the problem, make the methods you want to use PUBLIC STATIC methods, then if you want to use those methods on another page, just add go
NamespaceName.PageName.MethodName( var Args );
Upvotes: 1