protected void Save_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, ""); } } int length = xtelephone1.Text.Length; string inputString = xtelephone1.Text.Remove(0, length - 4); regID = z.a_regadmin(xname.Text, xrole.SelectedValue, ody.EncryptString(xemail.Text, file_len, file_string), xtelephone1.Text, xtelephone2.Text, "pt", pwalletID, ody.EncryptString(inputString, file_len, file_string)); if (regID != "0") { x_add_tbl = 0; x_add_succ = 1; } }