call ing a "sub" from a "sub" with different eventargs

liunx

Guest
I have a Sub


Sub BlinkList(Sender AS Object, e AS ImageClickEventArgs)
SQL = "***"
myconnection = new OleDbConnection(OleDBserver)
myconnection.Open()
DBCommand = new OleDbCommand(SQL,myconnection)
DBReader = DBCommand.ExecuteReader()
Blinks.DataSource = DBReader
Blinks.DataBind()
DBReader.Close()
myconnection.Close()
Blinks.SelectedIndex = 0
BindList
BlinkSelected
End Sub

the last line... "BlinkSelected" should call another sub I have

Sub BlinkSelected( s As Object, e As DataListCommandEventArgs )
label.Text = Blinks.DataKeys( e.Item.ItemIndex )
End Sub

but the two subs have different eventargs.

This might sound kinda crazy, I dont know, but thanks in advance for any help you can offer
 
Back
Top