No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
1 Posted Topic
How to delete a row from grid view using connectivity code. con = new SqlConnection("Data Source=SPICOM15-PC;Initial Catalog=Student;Integrated Security=True;Pooling=False"); Label lblstid = (Label)GridView1.Rows[e.RowIndex].FindControl("lblId"); TextBox txtname = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtname"); TextBox txtclassname = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtcity"); TextBox txtemailid = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtEmailId"); cmd.Connection = con; cmd.CommandText = "Update Information set Id='" + txtid.Text + "',Name='" + txtname.Text + …
The End.
nirajzambad