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(); }
partial void UpdatetblDokumanlar(tblDokumanlar instance);
partial void DeletetblDokumanlar(tblDokumanlar instance);
partial void InserttblDokumanlar(tblDokumanlar instance);