Exemplo n.º 1
0
 public ActionResult add()
 {
     var tablename = Request.QueryString["tablename"];
     var productid = Request.QueryString["productid"];
     var productname = Request.QueryString["productname"];
     APIDataDataContext db = APIDataContextProxy.APIDB;
     TProductName tpn = new TProductName();
     tpn.TableName = tablename;
     tpn.ProductCode = productid;
     tpn.ProductName = productname;
     db.TProductName.InsertOnSubmit(tpn);
     db.SubmitChanges();
     return View();
 }
Exemplo n.º 2
0
 private void ClearText_Click(object sender, EventArgs e)
 {
     TProductName.Clear();
     TProductType.Clear();
 }