the wrong thing is type of event I'm using ^^'
it's for javascript actions
to do my work I used
btn.click += EventHandler(button_click);
and it works
as for the text control ,
TextBox tmp = (TextBox) PlaceHolder1.findControl("input");
where "input" is the text box id