protected void Update(object source, DataListCommandEventArgs e) { if (!IsPostBack) { DataList1.DataBind(); SqlCommand cmd1 = new SqlCommand("Update install_Add_Test set installName = '" + ((TextBox)e.Item.FindControl("editInstallName")).Text.ToString() + "' where id = '1'", cs); cs.Open(); cmd1.ExecuteNonQuery(); //Response.Write(editInstallName); cs.Close(); //Response.Redirect("DatalistTest.aspx"); //DataList1.DataBind(); DataList1.EditItemIndex = -1; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)