protected void Page_Load(object sender, EventArgs e) { int id = Convert.ToInt32(Request.QueryString["ID"].ToString()); DataSet1TableAdapters.tblDuyurularTableAdapter dt = new DataSet1TableAdapters.tblDuyurularTableAdapter(); dt.DuyuruSil(id); Response.Redirect("DuyuruListesi.Aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { id = Convert.ToInt32(Request.QueryString["ID"].ToString()); DataSet1TableAdapters.tblDuyurularTableAdapter dt = new DataSet1TableAdapters.tblDuyurularTableAdapter(); TxtDuyuruID.Text = id.ToString(); TxtDuyuruKonu.Text = dt.DuyuruSec(id)[0].Konu; TextArea1.Value = dt.DuyuruSec(id)[0].Icerik; } }
protected void Page_Load(object sender, EventArgs e) { DataSet1TableAdapters.tblDuyurularTableAdapter dt = new DataSet1TableAdapters.tblDuyurularTableAdapter(); Repeater1.DataSource = dt.DuyuruOgrenci(); Repeater1.DataBind(); }
protected void Button1_Click1(object sender, EventArgs e) { DataSet1TableAdapters.tblDuyurularTableAdapter dt = new DataSet1TableAdapters.tblDuyurularTableAdapter(); dt.DuyuruEkle(TxtDuyuruKonu.Text, TextArea1.Value.ToString(), Convert.ToInt32(DropDownList1.SelectedValue)); Response.Redirect("DuyuruListesi.Aspx"); }
protected void Button1_Click(object sender, EventArgs e) { DataSet1TableAdapters.tblDuyurularTableAdapter dt = new DataSet1TableAdapters.tblDuyurularTableAdapter(); dt.DuyuruGuncelle(TxtDuyuruKonu.Text, TextArea1.Value, Convert.ToInt32(TxtDuyuruID.Text)); Response.Redirect("DuyuruListesi.Aspx"); }