Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User control question
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00696293
Message ID:
00697418
Vues:
12
This works - thanks Cathi. Next question: I'll be running this event in the click event of commandbuttons on a user control. This user control will appear on numerous pages (i.e. - not just 'WebForm1'). Is there an easy way to determine which aspx page the control is currently residing in? Or, should I use some type of session variable to store this info?

Because, depending on the current web form, the code could be:
CType(Me.Page, WebForm1).fnDeleteRecord()
CType(Me.Page, WebForm2).fnDeleteRecord()
CType(Me.Page, WebForm3).fnDeleteRecord() ...
Or, alternatively, do you recommend a different approach?

Al

>The code should be placed in the Click event of the Delete Button on your UserControl. That way when the button is clicked then the Page's function will be called. Here is the VB.NET translation:
>
>
>CType(Me.Page, WebForm1).fnDeleteRecord()
>
>
Al Williams

Anola MB, CANADA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform