M
msch-prv
I would like to raise the selected event of an objectdatasource (ods)
to retrieve some data. I tried to raise this event using a server
button. I am at a loss as to how set up the RaiseEvent syntax
arguments.
Question: is it possible to call this event from a button server
control? Thanks for any pointers.
I tried variations of the following:
Private Event MyodsSelected(ByVal sender As Object, _
ByVal e As
System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs)
Protected Sub btn1_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
Dim sender1 As Object
Dim e1 As System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs
RaiseEvent MyodsSelected(sender1,e1)
End Sub
Protected Sub odsRecipeDet_Selected(ByVal sender As Object,
ByVal e As
System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs)
...
End Sub
to retrieve some data. I tried to raise this event using a server
button. I am at a loss as to how set up the RaiseEvent syntax
arguments.
Question: is it possible to call this event from a button server
control? Thanks for any pointers.
I tried variations of the following:
Private Event MyodsSelected(ByVal sender As Object, _
ByVal e As
System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs)
Protected Sub btn1_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
Dim sender1 As Object
Dim e1 As System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs
RaiseEvent MyodsSelected(sender1,e1)
End Sub
Protected Sub odsRecipeDet_Selected(ByVal sender As Object,
ByVal e As
System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs)
...
End Sub