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.