private void LoadList(string[,] strAPassword, int index, bool IsRequest) { if (IsRequest) { if (strAPassword != null) { PasswordDisplay1.Bind(strAPassword[0, 0], strAPassword[0, 1], ++index); PasswordDisplay2.Bind(strAPassword[1, 0], strAPassword[1, 1], ++index); PasswordDisplay3.Bind(strAPassword[2, 0], strAPassword[2, 1], ++index); PasswordDisplay4.Bind(strAPassword[3, 0], strAPassword[3, 1], ++index); PasswordDisplay5.Bind(strAPassword[4, 0], strAPassword[4, 1], ++index); PasswordDisplay6.Bind(strAPassword[5, 0], strAPassword[5, 1], ++index); PasswordDisplay7.Bind(strAPassword[6, 0], strAPassword[6, 1], ++index); PasswordDisplay8.Bind(strAPassword[7, 0], strAPassword[7, 1], ++index); PasswordDisplay9.Bind(strAPassword[8, 0], strAPassword[8, 1], ++index); PasswordDisplay10.Bind(strAPassword[9, 0], strAPassword[9, 1], ++index); } } else { if (strAPassword != null) { PasswordDisplay1.Bind(strAPassword[0, 0], strAPassword[0, 1], strAPassword[0, 2], ++index); PasswordDisplay2.Bind(strAPassword[1, 0], strAPassword[1, 1], strAPassword[1, 2], ++index); PasswordDisplay3.Bind(strAPassword[2, 0], strAPassword[2, 1], strAPassword[2, 2], ++index); PasswordDisplay4.Bind(strAPassword[3, 0], strAPassword[3, 1], strAPassword[3, 2], ++index); PasswordDisplay5.Bind(strAPassword[4, 0], strAPassword[4, 1], strAPassword[4, 2], ++index); PasswordDisplay6.Bind(strAPassword[5, 0], strAPassword[5, 1], strAPassword[5, 2], ++index); PasswordDisplay7.Bind(strAPassword[6, 0], strAPassword[6, 1], strAPassword[6, 2], ++index); PasswordDisplay8.Bind(strAPassword[7, 0], strAPassword[7, 1], strAPassword[7, 2], ++index); PasswordDisplay9.Bind(strAPassword[8, 0], strAPassword[8, 1], strAPassword[8, 2], ++index); PasswordDisplay10.Bind(strAPassword[9, 0], strAPassword[9, 1], strAPassword[9, 2], ++index); } } }
protected void IB_Delete_Click(object sender, ImageClickEventArgs e) { PasswordDisplay1.Delete(); PasswordDisplay2.Delete(); PasswordDisplay3.Delete(); PasswordDisplay4.Delete(); PasswordDisplay5.Delete(); PasswordDisplay6.Delete(); PasswordDisplay7.Delete(); PasswordDisplay8.Delete(); PasswordDisplay9.Delete(); PasswordDisplay10.Delete(); Response.Redirect("../Member/MyPasswords.aspx"); }