<asp:TextBox ID="TextBox1" runat="server"> retrival data fro sql</asp:TextBox> <br /> <asp:Button ID="Button1" runat="server" Text="Button" />
protected void Button1_Click(object sender, EventArgs e) { string str_id = cell_id.InnerText.ToString(); sqlcon.Open(); SqlCommand sqlcom = new SqlCommand("updata tableName set colum name where id='"+str_id+"'", sqlcon); sqlcom.ExecuteNonQuery(); sqlcon.Close(); }
SqlCommand sqlcom = new SqlCommand("update tablename set columnname='"+TextBox1.Text+"' where id='"+str_id+"'", sqlcon);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)