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