Example #1
0
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        string name      = txtCompany.Text.Trim();
        string phone     = TXTPhone.Text.Trim();
        string methed    = txtMethed.Text.Trim();
        string maingoods = txtMaingood.Text.Trim();
        string qulity    = txtQulity.Text.Trim();
        users  us        = new users();

        us.name      = name;
        us.phone     = phone;
        us.methed    = methed;
        us.maingoods = maingoods;
        us.qulity    = qulity;
        int result = us.AddCompany_infor(us);

        if (result > 0)
        {
            Response.Write("<script>alert(\"添加信息成功!\")</script>");
            Binddate();
        }
    }