Archives
-
Sending Push Notifications from ASP.Net Core using Google Firebase
Recently I was engaged in a project where by the customer wanted to push messages to the mobile application from their website. For e.g. when a page is published in the website, a new product added or price changed for a product, customer wanted to send push notifications to the mobile applications in these events.
-
The String Interpolation ($) Special Character
While developing applications, it is quite common that you are required to produce formatted output. This is a common scenario for any developer whether you develop console application, web application or Mobile application. With C# 6 onwards Microsoft introduced a special character called interpolation operator ($) to help developers easily manipulate the string literals.
In this article, I am briefly explaining the interpolation operator with the help of couple of examples.
Let us consider the example of adding two numbers and print their sum as the output. Very simple example. The below is the old (ugly) way of doing this in C# with ASP.Net.
int a = 2, b = 3, sum = a + b;
Response.Write("The sum of " + a + " and " + b + " is " + sum);
-
Deploy ASP.Net core 2.2 under IIS