btn.Attributes.Add("onclick", "btn_Click");然后写btn_Click这个事件就好了
btn.Attributes.Add("onclick", "btn_Click");没错。这个就可以了。。