How to use LINQ Average Example using ASP.NET C# – Programming Code Examples
ASP.NET

How to use LINQ Average Example using ASP.NET C#2 min read

In this example, I will show how to average row value using LINQ in ASP.NET C#.

I have shown a very simple example to average total value from list. I have created a two classes one student and another student Mark to provide temporary data to grid view .In this case student and student-Mark class has a parent and child class relationship to each other. Hear I will find average number each student using LINQ Average() Method.




Output:

LINQ Average Example using ASP.NET C#
LINQ Average Example using ASP.NET C#

WebForm1.aspx

WebFrom1.cs

Student.cs

StudentMark.cs

Leave a Comment