protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Id"] == null)
        {
            Response.Redirect("login.aspx");
        }
        Id    = Request.QueryString["Id"];
        islem = Request.QueryString["islem"];

        if (islem == "Sil")
        {
            system.cmd("Delete from Adminler where Id =" + Id);
            Response.Redirect("Adminler.aspx");
        }
        Label lbl1 = (Label)Master.FindControl("lblSayfaBaslik");

        lbl1.Text = "Admin Yonetimi";
        AdminCek();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Id"] == null)
        {
            Response.Redirect("login.aspx");
        }
        id    = Request.QueryString["Id"];
        islem = Request.QueryString["islem"];

        if (islem == "Sil")
        {
            system.cmd("Delete from siparis Where id=" + id);
            Response.Redirect("siparis.aspx");
        }


        Label lblBaslik = (Label)Master.FindControl("lblSayfaBaslik");

        lblBaslik.Text = "SİPARİŞLER";
        SiparisCek();
    }
Example #3
0
  protected void Page_Load(object sender, EventArgs e)
  {
      if (Session["Id"] == null)
      {
          Response.Redirect("login.aspx");
      }
      Label lbl1 = (Label)Master.FindControl("lblSayfaBaslik");

      lbl1.Text = "Anasayfa Yazıları";

      AdiSoyadiCek();

      Id    = Request.QueryString["Id"];
      islem = Request.QueryString["islem"];

      if (islem == "Sil")
      {
          system.cmd("Delete from Yazilar where Id =" + Id);
          Response.Redirect("Giris.aspx");
      }
  }