I have 3 ASP.NET pages. Each has its own GetSearchResult method, which produces a different search result and fills a GridView. Each page calls a shared helper method from a helper class.
Now in this helper class, I want to execute that GetSearchResult method that belongs to on the page that called the helper method.
Is this possible? And if so, how should I do this?
Pass in an instance of the class that owns the method GetSearchResult as a parameter to your helper method. This will give the helper method access to the callers methods. You will need to implement an interface to do this.