GridView.DataBind(); TextBox UserName = (TextBox)GridView.Rows[e.RowIndex].FindControl("TextBox1"); TextBox Password = (TextBox)GridView.Rows[e.RowIndex].FindControl("TextBox2"); Label lbl= (Label)GridView.Rows[e.RowIndex].FindControl("Label2"); SqlDataSource1.UpdateCommand = "Update UserDetails Set UserName='" + UserName.Text + "', Password='" + Password.Text + "' where Exi_ID=" + lbl.Text + " And Edition_Id=" + Session["Edition_ID"].ToString() + "";
SqlDataSource1.UpdateCommand = "Update UserDetails Set UserName='" + UserName.Text + "', Password='" + Password.Text + "' where Exi_ID=" + lbl.Text + " And Edition_Id=" + Session["Edition_ID"].ToString() + "";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)