sebnilsson.com
  • Blog
  • Projects
  • About
Twitter LinkedIn GitHub Stackoverflow CodersRank Sessionize Nuget RSS Email

Serialize HtmlString & MvcHtmlString in JSON.NET

2014-03-02 17:44 UTC
.NET ASP.NET C# Formatting JSON Serialization

The HtmlString-class (and MvcHtmlString) that is and has been used in the ASP.NET-platform, including WebPages, since the introduction of ASP.NET MVC is...

  • Comments

Rewrite Old URLs with Regex into RouteValueDictionary

2014-02-28 07:53 UTC
.NET ASP.NET C# Regex Routing

Have you ever needed to rewrite/redirect old URLs that have very similar pattern as your new, modern URLs, but want to do it with simple, maintainable code? In...

  • Comments

MVC: Get Current Action and Controller in View

2013-01-23 20:31 UTC
.NET ASP.NET C#

Have you ever needed to know what Action and/or Controller that is currently used in your View? This might be most helpful in an Layout-file, used by another...

  • Comments

Create Human-Readable File Size Strings in C#

2013-01-16 18:23 UTC
.NET C# IO

After needing functionality in C# for getting a human-readable file-size string I posted a question about it on Stackoverflow, as one does. The accepted answer...

  • Comments

FTP Upload File Using Only .NET Framework

2013-01-10 19:18 UTC
.NET C# FTP

Here an example of how to upload a file to a FTP-server, using the class FtpWebRequest, which is included in the .NET Framework. All you need to do is...

  • Comments
Older Posts Newer Posts
Tags
.NET (39) .NET Core (9) .NET Core Global Tools (3) .NET Tools (3) AppHarbor (4) ASP.NET (18) ASP.NET Core (2) Autofac (1) AutoMapper (1) Azure (2) Azure Storage (1) C# (30) Continuous (1) Core (1) CSS (1) Deno (1) Dependency Injection (1) Deployment (1) Dynamic (2) Entity Framework (1) Formatting (4) FTP (1) GitHub (6) Google Maps (2) HTML (1) HTTP (1) IIS (1) IO (1) JavaScript (5) jQuery (2) JSON (1) Kudu (1) LINQ (2) Localization (1) Locking (1) Logging (1) Microservices (1) Microsoft Office (1) Node.js (1) PowerShell (2) Projects (12) Razor (5) Regex (1) Reposts (2) Routing (3) Rust (3) SEO (6) Serialization (1) URI (4) VBA (1) Visual Studio (6) Web.config (1) WebForms (3) YUI (1)
Copyright © 2010 - 2025 Sebastian Nilsson
Posts by Date Posts by Tags