Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

How to find the AVG of two numbers (as Parameters via TextBox) using User-Defined Functions and Stored Proc (SQL Server 2005) in ASP.NET (C#)?

$
0
0

There are two TextBoxes to input numbers, a Button, and another TextBox for displaying the "AVG" of the two numbers. The user enters any two numbers via the TexBoxes, and on button-click, the "AVG" of the two numbers should be displayed in another TextBox.

Note1: The function to calculate "AVG" should be done in a User-Defined Function (SQL Server 2005), and should be called via Stored Procedure. The Stored Procedure, in turn, should be called in the ASP.NET code (using C#).

Note2: This is a web-based ASP.NET application (using C#).

Do provide a sample code to implement this feature.


Viewing all articles
Browse latest Browse all 23244

Trending Articles