D
Dave H
I've used AddHandler to add event handling to dynamically create AspX
controls, but I'm having issues assigned a group of static controls the same
way.
This is the code I'm trying:
For nIndex = 1 To nNumberofControls
Try
oCheckBox = FindControl("CheckBox" & nIndex)
oCheckBox.AutoPostBack = True
AddHandler oCheckBox.CheckedChanged, AddressOf HandleProductCheck
Catch ex As Exception
'
End Try
Next
Sub HandleProductCheck(ByVal sender As System.Object, ByVal e As
System.EventArgs)
What am I missing?
Thanks...
controls, but I'm having issues assigned a group of static controls the same
way.
This is the code I'm trying:
For nIndex = 1 To nNumberofControls
Try
oCheckBox = FindControl("CheckBox" & nIndex)
oCheckBox.AutoPostBack = True
AddHandler oCheckBox.CheckedChanged, AddressOf HandleProductCheck
Catch ex As Exception
'
End Try
Next
Sub HandleProductCheck(ByVal sender As System.Object, ByVal e As
System.EventArgs)
What am I missing?
Thanks...