Professional Documents
Culture Documents
Chapter 1 Slides
Chapter 1 Slides
An introduction to
ASP.NET programming
http://www.modulemedia.com/ourwork/index.html
protocol domain name path file name
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Chapter 1: Future Value</title>
<style type="text/css">
<!-- CSS code for the generated styles -->
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<img alt="Murach" class="style1"
src="Images/MurachLogo.jpg" /><br />
<h1>401K Future Value Calculator</h1>
<table class="style2">
<tr>
<td class="style3">Monthly investment</td>
<td><asp:DropDownList ID="ddlMonthlyInvestment"
runat="server" Width="106px">
</asp:DropDownList></td>
</tr>
namespace Ch01FutureValue
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
for (int i = 50; i <= 500; i += 50)
ddlMonthlyInvestment.Items.Add(i.ToString());
}