protected void Page_Load(object sender, EventArgs e) { DataSet1TableAdapters.TBL_SATISLARTableAdapter dt = new DataSet1TableAdapters.TBL_SATISLARTableAdapter(); Repeater1.DataSource = dt.SatisListesi(); Repeater1.DataBind(); }
protected void Button1_Click(object sender, EventArgs e) { DataSet1TableAdapters.TBL_SATISLARTableAdapter dt = new DataSet1TableAdapters.TBL_SATISLARTableAdapter(); dt.SatisEkle(TxtAdSoyad.Text, TxtTelefon.Text, TxtYapilan.Text, TxtParca.Text, Txtiscilik.Text, TxtToplam.Text, TxtAciklama.InnerText); Response.Redirect("SatisListesi.aspx"); }
protected void Page_Load(object sender, EventArgs e) { int id = Convert.ToInt32(Request.QueryString["SATISID"].ToString()); DataSet1TableAdapters.TBL_SATISLARTableAdapter dt = new DataSet1TableAdapters.TBL_SATISLARTableAdapter(); dt.SatisSil(id); Response.Redirect("SatisListesi.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { id = Convert.ToInt32(Request.QueryString["SATISID"].ToString()); TxtSatisId.Text = id.ToString(); DataSet1TableAdapters.TBL_SATISLARTableAdapter dt = new DataSet1TableAdapters.TBL_SATISLARTableAdapter(); TxtAdSoyad.Text = dt.SatisSec(id)[0].SATISAD; TxtTelefon.Text = dt.SatisSec(id)[0].SATISTELEFON; TxtYapilan.Text = dt.SatisSec(id)[0].SATISYAPILANIS; TxtParca.Text = dt.SatisSec(id)[0].SATISPARCA; Txtiscilik.Text = dt.SatisSec(id)[0].SATISISCILIK; TxtToplam.Text = dt.SatisSec(id)[0].SATISTOPLAM; //TxtAciklama.InnerText = dt.SatisSec(id).SATISACIKLAMAColumn; } }