[owasp-dotnet security cheat sheet reference]
https://cheatsheetseries.owasp.org/cheatsheets/DotNet_Security_Cheat_Sheet.html
[owasp-dotnet security cheat sheet reference]
https://cheatsheetseries.owasp.org/cheatsheets/DotNet_Security_Cheat_Sheet.html
public class PagedList<T> : List<T> | |
{ | |
public int current_page { get; set; } | |
public int total_pages { get; set; } | |
public int page_size { get; set; } | |
public int total_count { get; set; } | |
public bool has_previous => current_page > 1; | |
public bool has_next => current_page < total_pages; | |
public PagedList() |
Create a Partial View for the Modal:
Create a partial view named _ConfirmationModal.cshtml
that contains the HTML for your confirmation modal:
<!-- _ConfirmationModal.cshtml -->
<div id="confirmationModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Confirmation</h5>
Assuming you have a Razor Page named Index.cshtml
, here's how you can implement the dynamic population of cities based on the selected country using AJAX and jQuery:
Design the UI:
In your Index.cshtml
, create two dropdown lists - one for countries and one for cities:
<select id="countryDropdown">
<option value="">Select Country</option>
<!-- Populate countries dynamically if needed -->
</select>
Create Razor Page:
Create a new Razor Page named Index.cshtml
or any other relevant name.
Design the UI: In your Razor Page's HTML markup, create two dropdown lists - one for countries and one for cities:
<select id="countryDropdown">
<option value="">Select Country</option>
Selecting Elements:
$(selector)
: Selects elements based on CSS-style selectors.$('#elementId')
: Selects an element by its ID.$('.className')
: Selects elements by their class name.Manipulating Elements:
.html()
: Gets or sets the HTML content of an element..text()
: Gets or sets the text content of an element.SELECT OBJECT_NAME(object_id) AS Procedure_Name FROM sys.sql_modules(nolock) WHERE definition LIKE '%31291%' AND OBJECTPROPERTY(object_id, 'IsProcedure') = 1 |
// Un retweet | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
for(var i = 1; i < 500; i++){ | |
document.querySelectorAll('[data-testid="unretweet"]')[0].click() | |
await sleep(1000) | |
document.querySelectorAll('[data-testid="unretweetConfirm"]')[0].click() | |
await sleep(1000) |
DECLARE @Table TABLE( | |
SPID INT, | |
Status VARCHAR(MAX), | |
LOGIN VARCHAR(MAX), | |
HostName VARCHAR(MAX), | |
BlkBy VARCHAR(MAX), | |
DBName VARCHAR(MAX), | |
Command VARCHAR(MAX), | |
CPUTime INT, | |
DiskIO INT, |