LINQ Average Example using ASP.NET C# – Programming, Pseudocode Example, C# Programming Example
ASP.NET

LINQ Average Example using ASP.NET C#

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: