Пример #1
0
        protected void EmployeesGrid_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
        {
            string adet   = e.NewValues["Adet"].ToString();
            string urunid = e.NewValues["UrunID"].ToString();
            string bayiid = e.NewValues["BayiID"].ToString();

            db.I_Siparislerim(Convert.ToInt32(bayiid), Convert.ToInt32(urunid), Convert.ToInt32(adet));
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }
        protected void EmployeesGrid_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
        {
            string      adet       = e.NewValues["Adet"].ToString();
            string      urunid     = e.NewValues["UrunID"].ToString();
            ProfileBase curProfile = ProfileBase.Create(Membership.GetUser().UserName);
            string      bayiid     = curProfile.GetPropertyValue("BayiID").ToString();

            db.I_Siparislerim(Convert.ToInt32(bayiid), Convert.ToInt32(urunid), Convert.ToInt32(adet));
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }