예제 #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            EntityPersonel ent = new EntityPersonel();

            ent.Personelad        = TextBox1.Text;
            ent.Personelsoyad     = TextBox2.Text;
            ent.Personelmaas      = decimal.Parse(TextBox3.Text);
            ent.Personeldepartman = byte.Parse(DropDownList1.SelectedValue);
            BLLPersonel.BLLPersonelEkle(ent);
        }
예제 #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            EntityPersonel ent = new EntityPersonel();

            ent.Personelad        = TextBox1.Text;
            ent.Personelsoyad     = TextBox2.Text;
            ent.Personelmaas      = Convert.ToDecimal(TextBox3.Text);
            ent.Personeldepartman = Convert.ToByte(DropDownList1.SelectedValue);
            BLLPersonel.BLLPersonelEkle(ent);
            Response.Redirect("Personel.aspx");
        }