I'm creating LinkButtons dynamically ...
Dim LinkButton as New LinkButton()
LinkButton.Text = "Link Text"
LinkButton.ID = "LinkID"
FormName.Controls.Add(LinkButton)
How do I specify the event name for OnClick like I would if I put it
in the form:
<asp:LinkButton
id="LinkID"
Text="Link Text"
OnClick="LinkButton_Click"
runat="server" />
Or, how is the event name for OnClick specified when being generated
dynamically? I'm having some trouble with this. I've read the docs,
some articles and relevant message saved from this list; I am not
getting the big picture.
Can someone please enlighten me? I think I have OnCommand under
control, but I might ask about that next.