示例#1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            TBL_YETENEK t = new TBL_YETENEK();

            t.YETENEK = TextBox1.Text;
            dt.TBL_YETENEK.Add(t);
            dt.SaveChanges();
            Response.Redirect("Yeteneklerim.aspx");
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            int x    = int.Parse(Request.QueryString["ID"]);
            var ytnk = dt.TBL_YETENEK.Find(x);

            ytnk.YETENEK = TextBox1.Text;
            dt.SaveChanges();
            Response.Redirect("Yeteneklerim.aspx");
        }
示例#3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            CV_ENTITIEntities1 dt
                = new CV_ENTITIEntities1();
            int x    = Convert.ToInt32(Request.QueryString["ID"]);
            var ytnk = dt.TBL_YETENEK.Find(x);

            dt.TBL_YETENEK.Remove(ytnk);
            dt.SaveChanges();
            Response.Redirect("Yeteneklerim.aspx");
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            TBL_ILETISIM t = new TBL_ILETISIM();

            t.ADSOYAD = TextBox1.Text;
            t.MAIL    = TextBox2.Text;
            t.KONU    = TextBox3.Text;
            t.MESAJ   = TextBox4.Text;

            dt.TBL_ILETISIM.Add(t);
            dt.SaveChanges();

            TextBox1.Text = "";
            TextBox2.Text = "";
            TextBox3.Text = "";
            TextBox4.Text = "";
        }