I have passed values from one page to another using query
but it is not accepting the update i.e When i click on update button nothing happens
SqlConnection con = new SqlConnection("Data Source=SNSS1\\SQLEXPRESS;Initial Catalog=Employee;User ID=sa;Password=eLog!234");
int empid = Convert.ToInt32(Request.QueryString["ID"].ToString());
string strSQL = " UPDATE Tbl_Employee SET FirstName=@FirstName,LastName=@LastName,EmpID=@EmpID,PhoneNumber=@PhoneNumber,Salary=@Salary WHERE ID="+empid ;
//string strSQL2 = " UPDATE Tbl_CountryStateCity SET CountryName=@FirstName,StateName=@StateName,CityName=@CityName WHERE ID="+ empid;
SqlDataAdapter da = new SqlDataAdapter();
da.UpdateCommand = new SqlCommand(strSQL, con);
da.UpdateCommand.Parameters.Add("@FirstName", SqlDbType.VarChar).Value = TextBox1.Text;
da.UpdateCommand.Parameters.Add("@LastName", SqlDbType.VarChar).Value = TextBox2.Text;
da.UpdateCommand.Parameters.Add("@EmpID", SqlDbType.VarChar).Value = TextBox3.Text;
da.UpdateCommand.Parameters.Add("@PhoneNumber", SqlDbType.VarChar).Value = TextBox4.Text;
da.UpdateCommand.Parameters.Add("@Salary", SqlDbType.VarChar).Value = TextBox5.Text;