Please guide insert or update data on create dynamic textbox, example
prive void getControl() { TextBox txtName = new TextBox(); txtName.Location=new Point(20,40); txtName.Size = new Size(600, 25); txtName.Validating +=new CancelEventHandler (txtName_Validating); Controls.Add(txtName); ButtonForms btnSave = new ButtonForms(); btnSave.Location = new Point(200, 8); btnSave.Text = "Submit"; btnSave.Click += new System. EventHandler(this.btnSave_Click); Controls.Add(btnSave); }
Aravind GovindarajPosted Dec 30, 2022, 1:00 PM
Hi, can you please refer this link may be it helps you
https://stackoverflow.com/questions/40298194/cant-insert-or-update-values-to-dynamically-created-textbox-into-sql-server-dat