protected void BtnDeleteRequest_ServerClick(object sender, EventArgs e) { SourceRequests.Delete(); GvwRequests.DataBind(); ScriptManager.RegisterStartupScript(BtnDeleteRequest, GetType(), "DeleteRequestModal", @"$('#DeleteRequestModal').modal('hide');", true); }
protected void BtnSearchRequestGrid_Click(object sender, EventArgs e) { if (TbxSearchRequestGrid.Text != string.Empty) { string h_requestor = CleanString(TbxSearchRequestGrid.Text); SourceRequests.SelectCommand = "SELECT * FROM RentalRequestDetails WHERE " + $"CONTAINS(accountOwner,'\"{h_requestor}*\"') " + $"OR CONTAINS(title,'\"{h_requestor}*\"') " + $"OR CONTAINS(fullName,'\"{h_requestor}*\"') " + $"OR CONTAINS(ISBN,'\"{h_requestor}*\"')"; } GvwRequests.DataBind(); }