Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["rid"] == null && !Page.IsPostBack)
     {
         FVResim.ChangeMode(FormViewMode.Insert);
     }
 }
Exemple #2
0
    protected void LinkRSil_Click(object sender, EventArgs e)
    {//resim silniyor.
        if (!YetkiKontrol(pageName + "-Delete"))
        {
            return;
        }

        Snlg_DBConnect vt      = new Snlg_DBConnect(true);
        int            silinen = vt.SorguCalistir("UPDATE snlg_V1.TblReferansApp SET Resim = NULL WHERE RId = @RId ", CommandType.Text, new Snlg_DBParameter[] { new Snlg_DBParameter("@RId", SqlDbType.Int, Request.QueryString["rid"]) });

        vt.Kapat();
        Snlg_Hata.ziyaretci.HataGosterBasarili("Resim silindi.", false);
        FVResim.DataBind();
    }
    protected void BtnRSil_Click(object sender, EventArgs e)
    {
        if (!YetkiKontrol(pageName + "-Delete"))
        {
            return;
        }

        Snlg_DBConnect vt = new Snlg_DBConnect(true);

        vt.SorguCalistir("UPDATE snlg_v1.TblResimGaleriResimlerApp SET Resim = NULL WHERE RId = " + Request.QueryString["rid"], CommandType.Text);
        vt.Kapat();
        FVResim.DataBind();
        Snlg_Hata.ziyaretci.HataGosterBasarili("Resim silindi.", false);
    }