コード例 #1
0
 protected void Button4_Click(object sender, EventArgs e)
 {
     GridView1.DataSource = null;
     GridView1.DataBind();
     hrc.Harcamalar srv = new hrc.Harcamalar();
     GridView2.DataSource = srv.AylikHarcama();
     GridView2.DataBind();
     //Label5.Text = srv.AylikHarcama().ToString();
 }
コード例 #2
0
 protected void Button6_Click(object sender, EventArgs e)
 {
     GridView3.DataSource = null;
     GridView3.DataBind();
     GridView1.DataSource = null;
     GridView1.DataBind();
     GridView2.DataSource = null;
     GridView2.DataBind();
     hrc.Harcamalar srv = new hrc.Harcamalar();
     GridView3.DataSource = srv.AylikHarcamaDagilim();
     GridView3.DataBind();
 }
コード例 #3
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     hrc.Harcamalar srv = new hrc.Harcamalar();
     GridView1.DataSource = srv.Select();
     GridView1.DataBind();
 }
コード例 #4
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     hrc.Harcamalar service = new hrc.Harcamalar();
     service.Insert(DropDownList.Text.Trim(), TextBox2.Text.Trim(), Convert.ToDouble(TextBox3.Text.Trim()), TextBox4.Text.Trim());
 }