G
Guest
Hello All:
I have coded the following in a webform:
Dim btn As New Button
btn.ID = "btnDynamicCarbonCopies"
btn.Text = " More "
AddHandler btn.Click, AddressOf AddDynamicCarbonCopy
plcContent.Controls.Add(New LiteralControl("<br/>"))
plcContent.Controls.Add(btn)
along with:
Private Sub AddDynamicCarbonCopy(ByVal sender As System.Object, ByVal e As
System.EventArgs)
''code in AddDynamicCarbonCopy
End Sub
plcContent is just a placeholder. The page loads fine, behaves fine,
compiles fine, etc. Everything seems to be just fine. Except that
AddDynamicCarbonCopy never fires when I click the button that I just added.
Can anyone see why?
TIA,
I have coded the following in a webform:
Dim btn As New Button
btn.ID = "btnDynamicCarbonCopies"
btn.Text = " More "
AddHandler btn.Click, AddressOf AddDynamicCarbonCopy
plcContent.Controls.Add(New LiteralControl("<br/>"))
plcContent.Controls.Add(btn)
along with:
Private Sub AddDynamicCarbonCopy(ByVal sender As System.Object, ByVal e As
System.EventArgs)
''code in AddDynamicCarbonCopy
End Sub
plcContent is just a placeholder. The page loads fine, behaves fine,
compiles fine, etc. Everything seems to be just fine. Except that
AddDynamicCarbonCopy never fires when I click the button that I just added.
Can anyone see why?
TIA,