예제 #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (Session["isOpen"] != "1")
            {
                Response.Redirect("login.aspx");
            }

            else
            {
                db.commentaires(numArticle, "" + Session["Client"], DateTime.Now.ToString("dd MMMM yyyy "), Request.Form["msg"]);

                Response.Redirect("article.aspx?id=" + numArticle + "");
            }
        }