Ben's Coding Blog: [Page 2]
Handling Post-Login Redirects in ASP.NET CoreOne of the most common pain-points for web developers is how to return a user to the page they originally requested after logging in. Fortunately, ASP.NET Core handles this cleanly—and securely—if you know how to wire it up properly. more Optimizing Social Sharing with Open Graph (OG)When someone shares your content on platforms like Facebook, LinkedIn, or X/Twitter, you want it to look sharp—right title, image, and summary. That’s where Open Graph (OG) meta tags come in. more Getting Validation Right in ASP.NET CoreWhen Front-End Meets Back-End: Getting Validation Right in ASP.NET Core Form validation isn't just a checkbox—it’s a critical intersection of UX, security, and data integrity. It’s also where front-end meets back-end—and where things ... more Text to HTML, now that's a good idea!Why I Built My Own Markdown Parser for DevStack more Migrating ASP.NET Identity from MVC 4 to Core 8🔄 Modernizing a legacy MVC 4 project to ASP.NET Core [version] is no small feat—especially when Identity is involved. If you’ve been through it, you already know. If you haven’t… you're in for a surprise. more Making Cloudflare Turnstile CAPTCHAs Work on Multiple Forms🤯 Making Cloudflare Turnstile CAPTCHAs Work on Multiple Forms (Without Losing Your Mind) Getting Cloudflare Turnstile CAPTCHAs working on a single form is easy. Getting them to work reliably across multiple forms on the same page... more Delivering Premium Content with a Cookie-Based PaywallIf you're looking to provide a teaser for premium content—just like platforms such as Substack—you can use a simple, effective method based on a browser cookie check. more Form Presets for a better UX🔹 Save Time, Engage Smarter: Form Presets in DevStack more FFmpeg for ASP.NET Core: Build a Media-Rich AppFFmpeg for ASP.NET Core: Build a Media-Rich App with DevStack more Modern Full-Stack Development with DevStack🔹Why `fetch` + JSON Matters more How to Monitor Content Security Policy (CSP) Violations in .NET Core 8If you're serious about website security, Content Security Policy (CSP) is one of your best defenses against XSS, data injection, and rogue scripts. But how do you know when something's being blocked? more Content Security Policy (CSP) for ASP.NET ProjectsAs your site scales or handles sensitive data, a strong Content Security Policy (CSP) becomes essential—not just for security, but for trust, SEO, and performance. more Which Controller CRUD Actions Should Be Async in ASP.NET Core MVC?✅ How to Write Clean Async CRUD in ASP.NET Core more Creating SEO-Friendly Routes in ASP.NET Core 8Search engines love clean, meaningful URLs—and users do too. In ASP.NET Core 8, building SEO-friendly routes is easier than ever with attribute routing, custom route constraints, and slugs. more .NET Core 8 Localization That Just Works🌐 .NET Core 8 Localization — the easy way more Content Security Policy (CSP) in ASP.NET CoreContent Security Policy CS(P) in ASP.NET Core: A Practical Middleware Pattern more Command Prompt vs PowerShell: Which Should Developers Use?Both Command Prompt (`cmd`) and PowerShell (`powershell`) are built into Windows—but they serve different purposes. more A Step-by-Step Plan to Clean Up Your `.csproj`When you're ready to revisit cleaning up your `.csproj`, this efficient step-by-step plan ensures you clean house without removing anything critical. more |