Пример #1
0
 protected void rpt_aramalar_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     ad = new accessDatabase();
     if (e.CommandName == "Delete")
     {
         ad.sil("delete from aramaIstatistik where aramaid = " + e.CommandArgument);
     }
     toplamAramaSayisi();
     ad.gridViewDoldur(rpt_aramalar, "aramaIstatistik", "select * from vw_gunlukAramalar");
 }
Пример #2
0
 protected void rpt_gelenMesajlar_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     ad = new accessDatabase();
     if (e.CommandName == "Delete")
     {
         ad.sil("delete from iletisim where iletisimid = " + e.CommandArgument);
     }
     toplamMesajSayisi();
     ad.gridViewDoldur(rpt_gelenMesajlar, "iletisim", "select * from iletisim order by iletisimid desc");
 }
Пример #3
0
        protected void rpt_yorumlar_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            ad = new accessDatabase();
            if (e.CommandName == "Delete")
            {
                ad.sil("delete from Yorumlar where yorumid = " + e.CommandArgument);
            }
            if (e.CommandName == "link")
            {
                Response.Write("<script>window.open('/dersnotu.aspx?konu=" + e.CommandArgument + "','_blank');</script>");
            }

            toplamYorumSayisi();
            ad.gridViewDoldur(rpt_yorumlar, "Yorumlar", "select * from Yorumlar order by yorumid desc");
        }
Пример #4
0
 protected void btnMakaleSil_Click(object sender, EventArgs e)
 {
     ad = new accessDatabase();
     ad.sil("delete from makale where id=" + DropDownListMakaleler.SelectedValue);
     ad.dropListDoldur(DropDownListMakaleler, "makale", "baslik", "id");
 }