you have enabled the auto postback for text box,
Make sure when ever you have adding dynamic controls, AutoPostback values should be false
TextBox txt = new TextBox();
txt.ID = "txt_" + i.ToString();
txt.CssClass = "txtb";
txt.AutoPostBack = false;
txt.EnableViewState = true;