asp.net - Correct update statement c# -
i'd know if update sql statement correct, because have form wanna edit data. but, reason, form doesn't save updates , nothing happens in db. this code-behind: using system; using system.collections.generic; using system.linq; using system.web; using system.web.ui; using system.web.ui.webcontrols; using system.data.sqlclient; using system.data; public partial class edit : system.web.ui.page { sqlconnection con = new sqlconnection("data source=cassia-pc\\sqlexpress;initial catalog=clientes;integrated security=true"); protected void page_load(object sender, eventargs e) { string v = request.querystring["id"]; sqlcommand cmd = new sqlcommand("select idcliente, nmcliente, fantasia, cpf, cep, logradouro, numero, complemento, bairro, cidade, estado, telefone, celular, insestadual, insmunicipal, email, homepage, tbclientes.tpcliente, tbtipoclientes.idtipocliente, tbtipoclientes.nmtipocliente tbclientes inner join tbtipoclie