protected void btnsubmit_Click(object sender, EventArgs e) { DataTable tab = new DataTable(); tab = obj.RetrieveId(); int id = Convert.ToInt32(tab.Rows[0]["Order_Id"].ToString()); for (int i = 0; i < Convert.ToInt32(txtorders.Text); i++) { string txtvalue = "mytxt" + i.ToString(); TextBox txt = (TextBox)pnlText.FindControl(txtvalue); if (txt != null) { string strText = txt.Text; obj.saveDetails(id, strText); // (SaveDetails is a Function to save values to SQL which i have written in class) } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)