Esempio n. 1
0
    protected void EditSave_Click(object sender, EventArgs e)
    {
        string path = serverpath + @"\Handlers\bf.pke";

        if (File.Exists(path))
        {
            StreamReader reader = new StreamReader(path, true);
            file_string = reader.ReadToEnd();
            reader.Close();
            if (file_string != null)
            {
                string oldValue = file_string.Substring(0, file_string.IndexOf("</BitStrength>") + 14);
                file_string = file_string.Replace(oldValue, "");
            }
        }
        if (z.e_regadmin(edit_xname.Text, ody.EncryptString(edit_xpass.Text, file_len, file_string), edit_xrole.SelectedValue, ody.EncryptString(edit_xemail.Text, file_len, file_string), edit_telephone1.Text, edit_telephone2.Text, "pt", pwalletID, getAdmins.SelectedValue, edit_status.SelectedValue, sup_doc2, Server.MapPath("~/"), Designation.Text) > 0)
        {
            x_edit_tbl  = 0;
            x_edit_succ = 1;
        }
    }