I would like to raise the selected event of an objectdatasourc e (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(B yVal sender As Object, _
ByVal e As
System.Web.UI.W ebControls.Obje ctDataSourceSta tusEventArgs)
Protected Sub btn1_Click(ByVa l sender As Object, ByVal e As
System.EventArg s)
Dim sender1 As Object
Dim e1 As System.Web.UI.W ebControls.Obje ctDataSourceSta tusEventArgs
RaiseEvent MyodsSelected(s ender1,e1)
End Sub
Protected Sub odsRecipeDet_Se lected(ByVal sender As Object,
ByVal e As
System.Web.UI.W ebControls.Obje ctDataSourceSta tusEventArgs)
...
End Sub