How to get id from database for update query in c#(windows application)Friends..i want to update customer table from customer name inserted in Textbox..
but.see there is no textbox for customer id..I would like to take that id from database and update customer name in database for that id..
how should i complete this query???
sSql = "Update company set CNAME='" + custnm.Text + "' where cid=..............;