Access Methods on Parent Page from User Control
Posted on 2006-07-18
Simply put: I have a user control that I use on multiple pages. I want to access a given method in the code behind of the parent page containing the user control. This method would have the same name on each parent page.
I am suing C# in ASP.NET 2.0.
I have a DataView on the Parent Page that lists employees and related data from a DB. This is populate on page load via a method. When you select an employee in the DataView a user control is unhidden(made visible) and then is populated with that employees information. This information is then edited by the user and saved back to the DB from a button activated method within the user control. Fthe user control is re-hidden.
How do I make the last step of the save operation refresh the data in the data view on the Parent Page?