Professional Documents
Culture Documents
Chapter 2 Slides
Chapter 2 Slides
How to develop
a one-page
web application
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Chapter 2: Future Value</title>
<style type="text/css">
.auto-style1 {
width: 100%;
}
.auto-style2 {
width: 172px;
}
</style>
</head>
<body>
<img src="Images/MurachLogo.jpg" alt="Murach Logo"/>
<h1>401K Future Value Calculator</h1>
<form id="form1" runat="server">
namespace Ch02FutureValue
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
UnobtrusiveValidationMode =
UnobtrusiveValidationMode.None;
if (!IsPostBack)
for (int i = 50; i <= 500; i += 50)
ddlMonthlyInvestment.Items.Add(i.ToString());
}