You need to create a new asp file and add 4 asp text boxes to your project. Name those accordingly.
Then create a button to add sum to the 4th text box. Your assignment doesn't say button but that will be more efficient.
Asp Codes:
<![CDATA[
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:textbox id="txt1" runat="server" xmlns:asp="#unknown"></asp:textbox>
<asp:textbox id="txt2" runat="server" xmlns:asp="#unknown"></asp:textbox>
<asp:textbox id="txt3" runat="server" xmlns:asp="#unknown"></asp:textbox>
<br />
<asp:button id="btnCalculate" runat="server" onclick="btnCalculate_Click" text="Calculate" xmlns:asp="#unknown" />
</div>
<div>
<asp:textbox id="txt4" runat="server" ontextchanged="TextBox4_TextChanged" xmlns:asp="#unknown"></asp:textbox>
</div>
</form>
</body>
</html>
C# Codes like this:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnCalculate_Click(object sender, EventArgs e)
{
double num1 = Convert.ToDouble(txt1.Text);
double num2 = Convert.ToDouble(txt2.Text);
double num3 = Convert.ToDouble(txt3.Text);
double result = num1 + num2 + num3;
txt4.Text = result.ToString();
}
}