Ejemplo n.º 1
0
    protected void Button_submit_pet_Click(object sender, EventArgs e)
    {
        SqlFuns sf     = new SqlFuns();
        int     result = sf.EditPet(this.U_pet1.pet);

        if (result > 0)
        {
            Response.Write("<script language='javascript'>alert('Create Successfully.'); location.href='manager.aspx</script>");
        }
        else
        {
            Response.Write("<script language='javascript'>alert('Failed, Please Connect System Manager.');</script>");
        }
    }