M
MLecrone
Please pardon my ignorance if this is an obvious question to you more
experienced .Netters! I'm sure it only has to do with referencing the
right class (or containing object?), but I've been unsuccessful thus
far.
I have a single subroutine that handles multiple SelectedIndexChanged
events:
Private Sub SelectedIndexChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles ddlEmployeeType.SelectedIndexChanged,
ddlEmployeeName.SelectedIndexChanged, ddlGroups.SelectedIndexChanged,
ddlWorkCenter.SelectedIndexChanged, lstBuyers.SelectedIndexChanged
Inside this Sub I would then like to discover which control raised the
event along with the "selected index" of the control so that I can
then manipulate a dynamic SQL statement to return appropriate data.
The closest I've gotten so far is to grab sender.GetType.Name, but
obviously I don't care that the sender was a drop down list, I already
know that.
Any help or pointing me to an appropriate reference is much
appreciated.
experienced .Netters! I'm sure it only has to do with referencing the
right class (or containing object?), but I've been unsuccessful thus
far.
I have a single subroutine that handles multiple SelectedIndexChanged
events:
Private Sub SelectedIndexChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles ddlEmployeeType.SelectedIndexChanged,
ddlEmployeeName.SelectedIndexChanged, ddlGroups.SelectedIndexChanged,
ddlWorkCenter.SelectedIndexChanged, lstBuyers.SelectedIndexChanged
Inside this Sub I would then like to discover which control raised the
event along with the "selected index" of the control so that I can
then manipulate a dynamic SQL statement to return appropriate data.
The closest I've gotten so far is to grab sender.GetType.Name, but
obviously I don't care that the sender was a drop down list, I already
know that.
Any help or pointing me to an appropriate reference is much
appreciated.