Help with controls!

Shims

Active member
Joined
Jun 15, 2003
Messages
39
Hello, i am using a class to dynamically create controls on an asp.net page. i was wondering if there is any way that i can also assign these controls any events. thanks!
 
Code:
Button Button1 = new Button();
Button1.Click += new System.EventHandler(this.Button1_Click);

public void Button1_Click(object sender, System.EventArgs e)
{

}
 
Back
Top