protected void BtnDeleteAccount_ServerClick(object sender, EventArgs e) { SourceAccountsEdit.Delete(); GvwAccounts.DataBind(); ScriptManager.RegisterStartupScript(BtnDeleteAccount, GetType(), "DeleteAccountModal", @"$('#DeleteAccountModal').modal('hide');", true); }
protected void BtnEditAcc_ServerClick(object sender, EventArgs e) { if (IsValid) { FvwAccounts.UpdateItem(true); GvwAccounts.DataBind(); ScriptManager.RegisterStartupScript(BtnEditAcc, GetType(), "editAccountModal", @"$('#editAccountModal').modal('hide');", true); ScriptManager.RegisterStartupScript(BtnEditAcc, GetType(), "UpdateNotifModal", @"$('#UpdateNotifModal').modal('toggle');", true); } }
protected void BtnSearchAccountGrid_Click(object sender, EventArgs e) { if (TbxSearchAccountlGrid.Text != string.Empty) { string h_account = CleanString(TbxSearchAccountlGrid.Text); SourceAccounts.SelectCommand = "SELECT * FROM BorrowerAccounts WHERE " + $"CONTAINS(accountOwner,'\"{h_account}*\"') " + $"OR CONTAINS(userName,'\"{h_account}*\"')"; } GvwAccounts.DataBind(); }