ProductsDataContext db = new ProductsDataContext(); var matchedproduct = db.GetTable<product>().SingleOrDefault(p =>p.ProductID==productID); if (matchedproduct != null) { products product=new products(); product.ProductName = txtpname.Text; db.SubmitChanges()};
matchedproduct
product
matchedproduct.ProductName = txtpname.Text; db.SubmitChanges();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)