How to Redirect WWW and non-HTTPS in ASP.NET Core

In this article, we will give short tutorial about how to redirect your www and non-HTTPS ASP.NET Core website. This is to make sure that your site will be ranked higher, since Google does not like different URLs, for example ones with and without “www.” to show the same content. Redirect Request in ASP.NET Core […]

Read more
Using Mailkit to Send Email ASP.NET Core 3.1

This post is an example how to send email in Asp.net Core 3.1 using Mailkit. I assume that you have downloaded it and install it on your server. How to Send HTML Email in ASP.NET Core This code sends a simple HTML email using the Ethereal free SMTP testing service, you can create a free test account […]

Read more
How to Detect Session Timeout and Redirect to Login Page in ASP.NET

This is example of Detecting Session Timeout and Redirect to Login Page in ASP.NET, session timeout occurs when user is idle for the time specified as in web.config file. 1st Method In web.config file, set the sessionstate mode to inproc and authentication mode to Forms I’ve created three pages in this example , one is login […]

Read more
Use Serilog ASP.NET Core to SQL Server Database

Logging is an essential feature for any application, as it is necessary for detecting, investigating, and debugging issues. Serilog is a third-party, open source library that allows .NET developers to log structured data to the console, to files, and to several other kinds of data stores.  This article discusses how we can use Serilog to log structured […]

Read more
How to Customize ASP.NET Core Default UI

ASP.NET Core Identity includes a default UI as a Razor library that enables you to quickly add users to an application, without having to build all the UI yourself. The downside is that if you want to customise any of the pages associated with the default UI, then you end up taking ownership of all […]

Read more
How to Implement Mediator Pattern in ASP.NET Core 3.1

For the last few years, Command Query Responsibility Segregation (CQRS) and Event Sourcing (ES) emerged as patterns that can help implement large scale systems, with some risky complexity, by having different models to read or mutate data while also using events as a single source of truth. The mediator pattern is meant to split responsibilities between a caller and […]

Read more
How to Run .NET Core Generic as Windows Service

Net Core 2.2 provides Web Host for hosting web applications and Generic Host that is suitable for hosting a wider array of host apps. In the .Net Core 3 Generic Host will replace Web Host.  Generic Host will be suitable for hosting any kind of app including web applications. I looked at many examples but found that none showed […]

Read more
5 Tools to Check Your Website Speed

There are many speed test tools to use to measure your website speed. Many of the tools now reference the Google Page Speed Insights, and some tools give great explanations as to how you can improve your website speed based on the results. My personal experience is using Pingdom tools and Google Page Speed Insights. […]

Read more
How to Resolve Your High Usage on Shared Hosting

High CPU usage is a very common issue when it comes to shared hosting. Shared server hosts hundreds to thousands of websites and many of them are running their queries. Shared hosting tends to be limited in terms of resources and usage allocations. Many web hosts out there do offer unlimited bandwidth and storage, whereas […]

Read more
Find Hosting Bandwith Requirement for Your Site

When researching and choosing a web host to house your domain, one factor to evaluate and compare is the cost for your required amount of bandwidth, Yes, many providers offer “unlimited” hosting plans, but upon taking a closer look, you’ll find that unlimited isn’t truly unlimited – there are always penalties if you use too much as is […]

Read more