Hello Developer

Welcome to the CodeShorts

Practical tips, code snippets, and solutions to common challenges in JavaScript, C#, and ASP.NET Core development. While we don’t claim to be the definitive guide or the official industry standard, we are a passionate group of skilled developers eager to share our knowledge and experiences in full-stack programming. Whether you're navigating a complex application, debugging an elusive error, or looking for new inspiration, our practical insights are here to enhance your journey as a developer. We’d love to hear your thoughts, questions, and suggestions—reach out to us anytime at admin@codeshorts.com. Together, let’s push the boundaries of what can be achieved with modern web development.

September 17,2025

Keep it moving: Why I Tackle What’s in My Control First

Whether it's software, infrastructure, or home building— there’s a constant tug-of-war between polish and progress.

September 17,2025

Mudblazor grid unwanted sort

If a click event inside an item of your Mudblazor grid is triggering an unwanted sort check out the following solution

June 17,2025

Fixing UI Issues in Blazor When Removing Items from a List

Read this if you're experiencing UI inconsistencies when removing elements in a Blazor

April 7,2025

JavaScript create a global variable for an element that hasn't been added to the DOM yet

Seen this before? "Uncaught TypeError: Cannot read properties of null" never again!

April 5,2025

Fetch API with ASP.NET Razor Pages without using a form

One of the least cumbersome methods for posting data without page refreshes

April 5,2025

Return a partial view with fetch API in ASP.NET Core Razor Pages

I finally parted ways with jquery unobtrusive ajax and started using the fetch api and I couldn't be happier with the results

March 6,2025

Solution: Prisimjs isn't preserving line breaks

PrisimJs working beautifully but displaying all your code in a single line? here is the fix

March 5,2025

Solution: Bootstrap modals aren't responding to close but works with escape

Testing out bootstrap 5 on my latest project I noticed my modals weren't closing via the X or the close buttons.

February 27,2025

Tools of the trade Part 1: Greenshot

A free screen cap tool superior to snipping tool

February 19,2025

Computer Speak in Applications. Make it stop

File not found. Error sending email. Could not complete. Why do our applications talk to us like this in 2025?