Exemple #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string fname      = FileUpload1.FileName;
            string flocation  = "PDFFile/";
            string pathstring = System.IO.Path.Combine(flocation, fname);
            var    st         = new tblDokumanlar
            {
                FileName     = TextBox1.Text,
                FileLocation = pathstring,
            };

            db.tblDokumanlars.InsertOnSubmit(st);
            db.SubmitChanges();
            FileUpload1.SaveAs(MapPath(pathstring));
            Label1.Text = "Başarılı √";
            LoadData();
        }
Exemple #2
0
 partial void UpdatetblDokumanlar(tblDokumanlar instance);
Exemple #3
0
 partial void DeletetblDokumanlar(tblDokumanlar instance);
Exemple #4
0
 partial void InserttblDokumanlar(tblDokumanlar instance);