Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling page method from usercontrol
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00692278
Message ID:
00692281
Vues:
25
Usercontrols have a property called "Page" which is a reference to the page object that contains the instance of the usercontrol. Use this property to run any methods of the page.

>I have a usercontrol of buttons that I use as a toolbar for pages. How do I reference a method of the page (that the control is dropped onto) from the click event of one of the buttons.
>
>For instance from the Save button, I want to call the SaveData() method of whatever page the control is on.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform