LINQ Projection Operators (Select, SelectMany)

The Linq projection operator is used to retrieve one or more from the tables. Its like select syntax of the standard SQL query. Select and Select many are two types of linq projection operators. Linq projection operators Select many Select Linq Select Operator The select operator is used to retrieving data from the list or…

Read More

Looping Performance In C#

I am often asked by some people/colleagues, “which loop is faster?” “Which loop has higher performance?” Etc. I have heard that the For loop is faster than the For…each loop but I have never tried it before. So, I decided to see how big the difference is among all the loops and which one is…

Read More

LINQ Aggregate Function

Today, we will learn about Linq aggregate functions. Linq provides various aggregate functions like Min(), Max(), Sum(), Count(), Average(), Aggregate(). Linq Min() Function Here, we will learn about Min() function provided by Linq. As the name suggests, the Min() function gives the minimum value from the list or collection. Linq made it very easy to…

Read More

LINQ Lambda Expressions

In Linq, a function without a name is known as Lambda expression. It a more clear and makes the syntax small. As lambda expression is not must readable but internally its get converted to lambda only. Syntax of LINQ Lambda Expressions (parameter) => any expression Lambda expression is dynamic in nature and defines the type…

Read More

LINQ Syntax (Query Syntax & Method Syntax)

Here, we will learn about Linq query syntax and Linq method syntax with examples. The main advantage of Linq is that it allows us to write the query in the code itself due to which development becomes easier. LINQ Syntax Linq stands for Language Integrated Query and it is available in .NET version 3.5 or…

Read More

Google Map Integration In ASP.NET MVC

Here, we will learn about integrating google map API key in ASP.NET MVC. We can search for the map for any place by using the city name and country name for the region we have to search. First, we need to get our API key for the maps. Go to URL and navigate to APIs…

Read More

File Upload Using Ajax In ASP.NET MVC

Here, we will learn about how can we upload files using Ajax in ASP.NET MVC. We are going to use formData for the file upload. We can also upload multiple images using ajax in ASP.NET MVC. Let’s start building the application. Navigate to View -> Shared -> _Layout.cshtml <!DOCTYPE html> <html> <head> <meta charset=”utf-8″ />…

Read More

CRUD Operations Using AJAX In ASP.NET MVC

In this article, we will learn about how we can perform crud operations using ASP.NET MVC, Ajax, Bootstrap, and jQuery. We can create the user interactive pages using Ajax. What is AJAX? AJAX stands for (Asynchronous JavaScript and XML) and is used to update parts of the existing page and to retrieve the data from…

Read More