protected void Button2_Click(object sender, EventArgs e)
    {
        if (!checkCookie())
            Response.Redirect("Login.aspx");
        String fname = TextBox1.Text;
        String lname = TextBox2.Text;
        String addr = TextBox3.Text;
        String addr_proof = FileUpload1.PostedFile.FileName;
        String photo_id = FileUpload2.PostedFile.FileName;
        String phone = TextBox4.Text;
        String email = TextBox5.Text;
        String pword = TextBox6.Text;
        String alerts = RadioButtonList1.Text;

        String addrProofFolder = HttpContext.Current.Server.MapPath("~/Address ID");
        String addrProofTarget = Path.Combine(addrProofFolder, addr_proof);
        FileUpload1.SaveAs(addrProofTarget);

        String photoProofFolder = HttpContext.Current.Server.MapPath("~/Photo ID");
        String photoProofTarget = Path.Combine(photoProofFolder, photo_id);
        FileUpload2.SaveAs(photoProofTarget);

        String uname=Request.Cookies["Car-Trading"]["Username"].ToString();
        DatabaseHandler obj = new DatabaseHandler();
        obj.UpdateCustomerInfo(fname, lname, addr, addrProofTarget, photoProofTarget, phone, email, pword, alerts, uname);
        Response.Redirect("CustomerHome.aspx");
    }