Click here to Skip to main content
15,902,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
TextBox FirstName =(TextBox) gvExample.Rows[e.RowIndex].FindControl("txtFirstName");
TextBox LastName =(TextBox) gvExample.Rows[e.RowIndex].FindControl("txtLastName");
TextBox Title = (TextBox)gvExample.Rows[e.RowIndex].FindControl("txtTitle");
TextBox Country =(TextBox) gvExample.Rows[e.RowIndex].FindControl("txtCountry");
string query ="UPDATE USER_DETAILS SET LAST_NAME='" + LastName.Text + "',FIRST_NAME='" + FirstName.Text+ "',TITle='" + Title.Text+ "',COUNTRY='" + Country.Text+ "' where EMPLOYEE_ID='"+i+"'";


in query it is not taking the control text what should i do
Posted
Updated 19-Mar-14 0:43am
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900