Exemplo n.º 1
0
    private void FillGridComment()
    {
        Product_Comment      ac2 = new Product_Comment();
        Product_CommentDatum dm2 = new Product_CommentDatum();

        dm2.Id_Product = decimal.Parse(Request.QueryString["ID_Product"].ToString());

        GridView2.DataSource = ac2.select_product_comment_show_true(dm2);
        GridView2.DataBind();
    }
Exemplo n.º 2
0
    protected void ImageButton4_Click(object sender, ImageClickEventArgs e)
    {
        PublicClass          p   = new PublicClass();
        Product_Comment      ac2 = new Product_Comment();
        Product_CommentDatum dm2 = new Product_CommentDatum();

        dm2.Title        = TextBox4.Text;
        dm2.Email        = TextBox3.Text;
        dm2.NameUser     = TextBox2.Text;
        dm2.Text         = TextBox1.Text;
        dm2.Date_Send    = p.GetDate();
        dm2.Show_Comment = "false";
        dm2.Id_Product   = decimal.Parse(Request.QueryString["ID_Product"].ToString());
        ac2.Insert(dm2);
        Label11.Visible = true;
        TextBox4.Text   = "";
        TextBox3.Text   = "";
        TextBox2.Text   = "";
        TextBox1.Text   = "";
    }