Exemplo n.º 1
0
    protected void Button_update_Click(object sender, EventArgs e)
    {
        SqlFuns sf     = new SqlFuns();
        int     result = sf.EditUser(this.U_usr1.user);

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