Video summary
C# Asp.net Core mvc NET 5 Create a TO DO LIST APP with Bootstrap html css | Javascript Part 2 -2022
Main summary
Key takeaways
Overview
This video is Part 2 of a tutorial building an ASP.NET Core MVC (.NET 5) To-Do List app. It uses:
- JavaScript + HTML + CSS (with Bootstrap for styling)
- A SQLite database for persistence
What the tutorial adds (from Part 1 to Part 2)
- Demo walkthrough of the “final app” features
- Add new to-dos and have them saved to the database
- Search/filter to-dos as you type (no refresh)
- Mark items as completed via a checkbox-like toggle (check/undo)
- Edit existing items
- Delete items
- Persistence: refresh doesn’t clear items because data is stored in the database
Step-by-step technical implementation (key concepts)
-
Completed/Checked UI using CSS
- Adds a CSS class (e.g.,
check) that applies line-through text decoration to visually indicate completion.
- Adds a CSS class (e.g.,
-
Toggle completed state with JavaScript event handling
- Selects all table rows (
trelements). - Iterates through rows and attaches a click event listener.
- On click, it inspects the clicked cell (
td) and checks whether it contains the completion class. - Uses
classList.remove(...)/classList.add(...)to toggle completed styling.
- Selects all table rows (
-
Search bar UI (Bootstrap-styled input)
- Adds an
<input>element with:- an
idlikesearchBar - type
"text" - Bootstrap classes such as
form-control - placeholder like “Search content”
- an
- Adds an
-
Live filtering logic (keyup event)
- Adds a
keyupevent listener to the search input. - Reads the input value, converts it to uppercase, and filters to-dos by comparing with each row/cell’s text (also converted to uppercase).
- For each to-do row:
- If the match is found (
indexOf(...) > -1), setsstyle.displayto show it - Otherwise sets
style.display = "none"to hide it
- If the match is found (
- Includes a troubleshooting note: the correct DOM selection method must target the right elements (e.g., using
getElementsByTagNameor the correct tag name selector for the to-do rows).
- Adds a
-
Verification steps
- Tests:
- filtering by different keywords (e.g., “cars”, “cleaning”, “shopping”)
- editing and deleting items still work
- refresh behavior confirms persistence (saved items remain)
- Tests:
Main speakers / sources
- Speaker/source: The tutorial creator hosting the channel (referred to as “hey guys welcome back…” / “hi guys…”), demonstrating the implementation in Visual Studio 2019 and showing the running app demo.