L
Leon
Hi Guru?
The scenario is I am creating a number of checkboxs dynomically and
when I do that I am also creating event handler for them. So when a
checkbox is checked, in the event handler I can do something using its
ID but the problem is how to get its ID?
--------------- creating checkbox dynamically
-----------------------------
Private Function GetUpdateNotificationCheckBox(ByVal valPacketID As
String) As TableCell
Dim l_ReturnCell As New TableCell()
Dim l_CheckBox As New CheckBox()
l_CheckBox.ID = "chkUpdateNotification" & valPacketID
l_CheckBox.AutoPostBack = True
AddHandler l_CheckBox.CheckedChanged, AddressOf
Me.chkUpdateNotification_Checked
-------- event handler -------------------------------
Private sub chkUpdateNotification_checked (byval sender as
system.object,byval e as system.eventArgs)
' I want to get its ID here
end sub
Thanks in advance
The scenario is I am creating a number of checkboxs dynomically and
when I do that I am also creating event handler for them. So when a
checkbox is checked, in the event handler I can do something using its
ID but the problem is how to get its ID?
--------------- creating checkbox dynamically
-----------------------------
Private Function GetUpdateNotificationCheckBox(ByVal valPacketID As
String) As TableCell
Dim l_ReturnCell As New TableCell()
Dim l_CheckBox As New CheckBox()
l_CheckBox.ID = "chkUpdateNotification" & valPacketID
l_CheckBox.AutoPostBack = True
AddHandler l_CheckBox.CheckedChanged, AddressOf
Me.chkUpdateNotification_Checked
-------- event handler -------------------------------
Private sub chkUpdateNotification_checked (byval sender as
system.object,byval e as system.eventArgs)
' I want to get its ID here
end sub
Thanks in advance