Recently one of my friends was migrating a project from ASP.Net MVC 5 to ASP.Net core 3.1. One of the challenges he faced is with the Index Attribute in data annotations. The .Net Core is not recognizing the Index attribute. When he copied his class from his MVC 5 project, he got the following error message.
Microsoft Teams is leading the way that allows businesses to enable modern connected workspace that enable connectivity between teams and customers. At Atyaf eSolutions (https://www.atyafesolutions.com), we adopted Microsoft Teams in the early days of its launch and now we are helping our customers to setup and practice using Microsoft Teams..
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.
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);
One of my customer, who was using a popular video service to render all his video files in the website was looking for alternatives. The concerns from the customer were the following
It was a long-awaited feature to return multiple values from a method. Developers used collection variables such as Array, ArrayList or Generic List to return multiple values from methods. Now with Visual Studio 2017 and C# 7, you can easily return multiple values with the help of Tuples.
In this article, I am going to explain how tuples can be used in C# 7 onwards to return multiple values.
Consider the following code from the console application. The method GetDivisionResults accepts two parameters namely number and divisor and returns two integers that are quotient and remainder.
static void Main(string args)
int number = 17;
int devisor = 5;
var result = GetDivisionResults(17, 5);
Console.WriteLine("Quotient is " + result.Item1);
Console.WriteLine("Remainder is " + result.Item2);
In this article, I am going to explain how to create SharePoint hosted Add-In using Visual Studio and how to deploy this Add-In to SharePoint 2016 on premise version.
Building a successful Add-in include two steps. First you need to author your Add-In using Visual Studio. Once you build your Add-in you need to deploy this Add-In to a SharePoint environment and test the Add-In. You can deploy the Add-In to SharePoint online or to the on-premise SharePoint. This article covers the deployment of Add-in to the On Premises version.
Step 1: Create Your Add-In
Open Visual Studio as administrator. From the Menu, select File -> New -> Project
In the new Project Dialog box, from the left menu, expand Visual C#, then Office/SharePoint and choose SharePoint Add-in. Also you can use the search box in the top right corner to locate the Add-n Project template.
Managed navigation in SharePoint allows you to define SEO friendly URLs to SharePoint pages. This feature helps your visitors remember the URLs and also increases your page ranking in search engines. Once you enable the managed navigation for your site, SharePoint relates every page with a navigation term. To understand more about managed navigation, find the MSDN link