Chapter 20 Creating Web Sites and Web Pages by Using Visual Web Developer and ASP .NET 503
Now you’ll set a few properties for the seven new controls you have created on the Web
page. If it is not already visible, open the Properties window by pressing F4. As you set
the properties, you’ll notice one important difference between Web pages and Windows
Forms—the familiar Name property has been changed to ID in Visual Web Developer.
Despite their different names, the two properties perform the same function.
- Set the following properties for the objects on the form:
Object Property Setting
TextBox1 ID txtAmount
TextBox2 ID txtInterest
TextBox3 ID txtPayment
Label1 ID
Text
lblAmount
“Loan Amount”
Label2 ID
Text
lblInterest
“Interest Rate (for example, 0 .09)”
Label3 ID
Text
lblPayment
“Monthly Payment”
Button1 ID
Text
btnCalculate
“Calculate”
Your Web page looks like this: