how to insert into table asp.net c# : I am trygin to insert values from registration page into a table login_tbl

SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["RegistrationConnectionString"].ConnectionString);
    
conn.Open();
 string insertQ = "INSERT INTO login_tbl (empid,first_name,last_name,team_name,pwd,email_id,extension) VALUES('" + empbox.Text + "','" + fnamebox.Text + "','" + lnamebox.Text + "','" + teamnamebox.SelectedItem.Text + "','" + passwordbox.Text + "','" + emailbox.Text + "','" + extensionbox.Text + "')";

   SqlCommand com = new SqlCommand(insertQ, conn);

com.ExecuteNonQuery();
      Response.Write("registration done");

I am getting error at "com.executenonquery();" line..it is going into exception