Example #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            int      id = Convert.ToInt32(Request.QueryString["BLOGID"]);
            TBLYORUM t  = new TBLYORUM();

            t.KULLANICIAD = TextBox1.Text;
            t.MAIL        = TextBox2.Text;
            t.YORUMICERIK = TextBox3.Text;
            t.YORUMBLOG   = id;
            db.TBLYORUM.Add(t);
            db.SaveChanges();
            Response.Redirect("BlogDetay.Aspx?BLOGID=" + id);
        }
Example #2
0
        protected void Button1_Click1(object sender, EventArgs e)
        {
            int      id = Convert.ToInt32(Request.QueryString["MEKANID"]);
            TBLYORUM t  = new TBLYORUM();

            t.ADSOYAD    = TextBox1.Text;
            t.MAIL       = TextBox2.Text;
            t.YORUMBILGI = TextBox3.Text;
            t.YORUMMEKAN = id;
            db.TBLYORUM.Add(t);
            db.SaveChanges();
            Response.Redirect("deneme.aspx?MEKANID=" + id);
        }
 public ActionResult URUNAYRINTI(TBLYORUM p1)
 {
     db.TBLYORUM.Add(p1);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }