コード例 #1
0
    protected void btn_submit_Click(object sender, EventArgs e)
    {
        string qry = "insert into Contact values('" + txtname.Text + "','" + txtemail.Text + "','" + txtsubject.Text + "','" + txtmsg.Text + "')";

        x.contact_insert(qry);

        //Response.Write("<script>alert('You're Query is registered..')</script>");
        Response.Redirect("contact.aspx");
    }
コード例 #2
0
    protected void btn_add_Click(object sender, EventArgs e)
    {
        string qry = "insert into contact  values('" + txtoffname.Text + "','" + txtoffaddr.Text + "','" + txtphno.Text + "','" + txtfax.Text + "','" + txtemail.Text + "')";

        x.contact_insert(qry);


        Response.Redirect("contact.aspx");
    }