Home About

All posts tagged with "ASP.NET"

ASP.NET is Microsofts open source .Net Web framework. On newer versions of .Net this framework is cross platform and can run on both windows and linux.

Page 1 of 2 Older Posts →

Asp.net core - How to inject a dependency into a controller using standard dependency injection

Asp.net core has built in dependency injection. If you have a standard Asp.net core project you will find the method ConfigureServices in your startup. »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, ASP.NET, .Net core 20 January 2021

Asp.net core - What is the difference between AddTransient, AddSingleton and AddScoped?

When you wish to use dependency injection in Asp.net core you have three choices for the lifetime scope of your dependency. The three choices are »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on ASP.NET, .Net core, Dependency injection 18 January 2021

Asp.net core - how to set up a controller endpoint to receive XML instead of JSON

In a previous post I showed how you can send XML using the HttpClient in asp.net core, using the following code snippet: var httpClient = new »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on ASP.NET, .Net core, .Net, Webapi, Web development, XML 28 November 2020

Asp.net websockets - sending messages back and forth between client and server

My previous post on websockets on how to stream messages to a client has become quite popular. I felt that I left this halfway when I »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, Websocket, ASP.NET, .Net core, .Net 14 March 2020

Asp.net core - how to change the launch URL when working with asp.net projects

If you wish to change the URL that your browser is directed to, when starting your new asp.net project you need to change your launch »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Visual Studio, ASP.NET, .Net core 07 March 2020

Asp.net core - how to create a controller action with optional parameters

In this post I show you how to use optional parameters in asp.net core. It is actually quite simple as it works just the same »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on ASP.NET, .Net core, .Net 15 February 2020

How to fix a simple Asp.net core controller route that is not working

Once in a while I add a new action to my controller and for some reason it does not work, even though I have a whole »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on ASP.NET, Routing, Controller, .Net, .Net core 25 January 2020

How to use Websockets with Asp.net core - an example on how to push messages to a website

I finally decided that it was time to give websockets a try. They have been around for over a decade, but I just had not found »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Websocket, ASP.NET, C#, Javascript, .Net, .Net core 20 January 2019

Great books on how to learn or get into ASP .NET core (updated 2020)

Back in 2017 I started looking into .Net core Because of this I started scouting the web for good resources on .NET core. I am mostly »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Books, ASP.NET, C#, .Net, .Net core, Book review 28 November 2017

Asp.net Core - 404 file not found on a image, CSS, Javscript or another static file? (updated 2020)

If all your files in your wwwroot (or whatever you call your web root) folder gives you a 404. Then you have most likely misconfigured your »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on ASP.NET, Static files, .Net core, .Net 11 October 2017
Page 1 of 2 Older Posts →
Rss
Twitter
LinkedIn
profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2021 Cookie policy