Controls in the runtime,,,

liunx

Guest
hello everybody,

I'm tring to create controls in the run time of an asp.net project i've a place holder that will holds the controls, but i want to add some even handlers to it can anybody tell me how??

the form that ive used is

Button Button1= new Button();
PlaceHolder1.Controls.Add(Button1);
Button1.Text = "";
Button1.ID="IDA";

so do anybody knows how to create an onclick event to this button....????
 
Back
Top