I'm creating several buttons in the code behind of a user control.
I have a Dim btn As Button statement.
I want to create a Sub to run when the button is clicked.
Why can't I specify something like btn.OnClick="btn_click" in my code behind?
How do I recognize the OnClick event in my control?
I have a Dim btn As Button statement.
I want to create a Sub to run when the button is clicked.
Why can't I specify something like btn.OnClick="btn_click" in my code behind?
How do I recognize the OnClick event in my control?