예제 #1
0
 protected void Verify_Click(object sender, EventArgs e)
 {
     succ = z.a_x_pt_office(c_x.log_staff, admin_status, rbValid.SelectedValue, comment.Text, "", "", "", admin);
     if (succ != "0")
     {
         Response.Write("<script language=JavaScript>alert('Data verified successfully')</script>");
         Response.Redirect("./profile.aspx");
     }
     else
     {
         Response.Write("<script language=JavaScript>alert('Data not verified, Please try again later')</script>");
     }
 }
예제 #2
0
    protected void Verify_Click(object sender, EventArgs e)
    {
        Session["xcode"] = null;
        succ             = z.a_x_pt_office(c_x.log_staff, admin_status, rbValid.SelectedValue, comment.Text, "", "", "", admin);
        Random random = new Random();

        Session["xcode"] = random.Next(0x5f5e100).ToString();
        int num2 = z.e_X_PwalletLogStatus(c_x.log_staff, Session["xcode"].ToString());

        if ((Convert.ToInt32(succ) > 0) && (num2 > 0))
        {
            base.Response.Write("<script language=JavaScript>alert('Data verified successfully')</script>");
            SendAlert();
            base.Response.Redirect("./profile.aspx");
        }
        else
        {
            base.Response.Write("<script language=JavaScript>alert('Data not verified, Please try again later')</script>");
        }
    }