Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User control question
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00696293
Message ID:
00697418
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform