Exemplo n.º 1
0
        protected void B1_Click1(object sender, EventArgs e)
        {
            anatablo b1 = new anatablo();

            if (Text1.Text == "" || Text2.Text == "")
            {
                MessageBox.Show("Bütün verileri eksiksiz girmelisiniz.");
            }
            else
            {
                if (b1.kullaniciDogrula(Text1.Text, Text2.Text))
                {
                    Session["Kullanici_Adi"] = Text1.Text;
                    Session.Timeout          = 20;
                    if (b1.Kargocumu(Text1.Text))
                    {
                        //MessageBox.Show("Bu sayfaya erişim yetkiniz bulunmamaktadır..");
                        Response.Redirect("KargoIslemleri.aspx");
                    }
                    else
                    {
                        Response.Redirect("PersonelIslemleri.aspx");
                    }
                }


                else
                {
                    MessageBox.Show("Kullanıcı adı veya şifreniz geçersiz.");
                }
            }
        }