Blog

Blog posts on .NET, Azure, and more.

Markdown tag helper for ASP.NET Core

April 13, 2016 by Anuraj

ASP.NET MVC ASP.NET Core ASP.NET5 Markdown TagHelper CodeProject

Markdown is a lightweight markup language with plain text formatting syntax designed so that it can be converted to HTML and many other formats using a tool by the same name. Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor. Over the past few years, StackOverflow uses Markdown for formatting in the questions. This post is about creating a tag helper to render markdown in your view. I am using Markdown package from nuget to render the content. Here is my project.json file, which is using markdown package.

Attribute Routing in ASP.NET Core

April 11, 2016 by Anuraj

ASP.NET MVC ASP.NET Core ASP.NET5 Web API Attribute Routing CodeProject

Routing feature helps to match a URI to an action. In Web API 2, attribute routing introduced. Attribute Routing helps to implement routing by providng the attribute to action methods. ASP.NET Core also supports the convention-based routing as well. In convention based routing, all the routing information can be configured in a single place, which will be applied to all the controllers in the application. But it is hard to support certain URI patterns with convention based routing, like API versioning, Overloaded URI segments etc. Unlike old versions of Web API you don’t need to configure anything to use attribute routing in ASP.NET Core.

Using Remote validation with ASPNET Core

March 24, 2016 by Anuraj

ASP.NET MVC ASP.NET Core ASP.NET5 Remote Validation

Remote validation allows the developer to call the controller actions using client side script. This is extremely useful when you want to perform a back end query without having to perform a full server postback. ASP.NET MVC Remote configuraion helps us to do this by decorating the model properties with remote attribute. This post is about implementing remote validation in ASP.NET Core. For remote validation first you need to decorate the model class property with remote attribute.

Bundling and Minifying an AngularJS Application with ASP.NET MVC

March 22, 2016 by Anuraj

AngularJS Optimization Minification Bundling DI ASP.NET MVC

Bundling and minifying an application scripts and CSS reduces page load time and asset size. This post is about the challenges and solutions while enabling bundling and minification in your aspnet mvc application. ASP.NET MVC comes with ASP.NET Web Optimization Framework which helps to combine and minify CSS and JS files. You can specify the script directory or files based on your convenience. This is important because identifying and troubleshooting script errors with bundling and minification enabled app is hard.

Running your ASPNET application from Ubuntu 14.04

March 21, 2016 by Anuraj

ASP.NET ASP.NET Core DNX DNVM Azure Ubuntu

Ubuntu is a Debian-based Linux operating system and distribution for personal computers, smartphones and network servers. This post is about running ASP.NET Core application on Ubuntu VM running on Azure and making the application accessible via browser. First you need to install DNX runtime on the server, you can find more details about the installation from ASP.NET Docs site. You need to run the following commands as sudo in terminal.

Copyright © 2025 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub