How to reuse HTML snippets inside a Razor view in ASP.NET Core

Posted by Anuraj on Thursday, April 19, 2018 Reading time :1 minute

ASP.NET Core Razor

This post is a small tip about reusing HTML snippets inside a Razor view in ASP.NET Core. In earlier versions of ASP.NET MVC this could be achieved with the help of helper - A helper is a reusable component that includes code and markup to perform a task that might be tedious or complex. But there is no equivalent implementation is available in ASP.NET Core MVC. In this post I am explaining how we can achieve similar functionality in ASP.NET Core. Unlike ASP.NET MVC, this implementation, you can’t use it in multiple page. This is very helpful if you want to do some complex logic in view.

Getting started with Blazor

Posted by Anuraj on Sunday, April 8, 2018 Reading time :2 minutes

ASP.NET Core Blazor

This post is about how to get started with Blazor. Blazor is an experimental .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly. Blazor enables full stack web development with the stability, consistency, and productivity of .NET. While this release is alpha quality and should not be used in production, the code for this release was written from the ground up with an eye towards building a production quality web UI framework.

Dockerize an ASP.NET MVC 5 Angular application with Docker for Windows

Posted by Anuraj on Wednesday, April 4, 2018 Reading time :3 minutes

ASP.NET Docker Angular4

Few days back I wrote a post about working with Angular 4 in ASP.NET MVC. I received multiple queries on deployment aspects - how to setup the development environment or how to deploy it in IIS, or in Azure etc. In this post I am explaining how to deploy a ASP.NET MVC - Angular application to Docker environment.

Exploring Global Tools in .NET Core

Posted by Anuraj on Saturday, March 17, 2018 Reading time :2 minutes

.NETCore GlobalTools

This post is about Global Tools in .NET Core, Global Tools is new feature in .NET Core. Global Tools helps you to write .NET Core console apps that can be packaged and delivered as NuGet packages. It is similar to npm global tools.

Bulk Removing Azure Active Directory Users using PowerShell

Posted by Anuraj on Saturday, March 10, 2018 Reading time :1 minute

Azure PowerShell

This post is about deleting Azure Active directory. Sometimes you can’t remove your Azure Active Directory, because of the users and / or applications created or synced on it. So you can’t remove the users from Azure Portal.

WebHooks in ASP.NET Core

Posted by Anuraj on Wednesday, February 28, 2018 Reading time :2 minutes

AspNetCore WebHooks

This post is about consuming webhooks in ASP.NET Core. A WebHook is an HTTP callback: an HTTP POST that occurs when something happens; a simple event-notification via HTTP POST. From ASP.NET Core 2.1 preview onwards ASP.NET Core supports WebHooks. As usual, to use WebHooks, you need to install package for WebHook support. In this post I am consuming webhook from GitHub. So you need to install Microsoft.AspNetCore.WebHooks.Receivers.GitHub. You can do it like this.

Deploying Your Angular Application To Azure

Posted by Anuraj on Tuesday, February 6, 2018 Reading time :3 minutes

ASP.NET Core Angular CodeProject Azure Kudu

This post is about deploying you Angular application to Azure App service. Unlike earlier versions of Angular JS, Angular CLI is the preferred way to develop and deploy Angular applications. In this post I will show you how to build a CI/CD pipeline with GitHub and Kudu, which will deploy your Angular application to an Azure Web App. I am using ASP.NET Core Web API application, which will be the backend and Angular application is the frontend.
BMC logoBuy me a coffee

Copyright © 2020 - Anuraj P. 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. Hosted with ❤ by GitHub