Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get button to work on a user control

Status
Not open for further replies.

abds

Programmer
Dec 13, 2000
46
US
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?
 
Here is a thread to look at. It should answer your question.
thread855-554297
 
Thanks Cbokowski, but I've got two differences
1)I have a variable number of buttons so I'm using a placeholder control
2)I am trying to keep all my code in the ascx file
Phil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top