Sams Teach Yourself ASP.NET in 21 Days, Second Edition By Chris Payne
Table of Contents
Day 2. Building ASP.NET Pages
This workshop will help reinforce the concepts covered in today's lesson. Answers can be found in Appendix A.
How does ASP.NET maintain the state of server controls?
What namespace do the ASP.NET Page and LiteralControl classes belong to?
What are the seven namespaces automatically imported into every ASP.NET page?
What does "type-safe" mean?
What is the Common Language Specification?
Create a simple ASP.NET page in VB.NET or C# that accepts two number inputs from the user and displays their product when the Submit button is clicked. Use two text box controls, a label control, and a Submit button control. Also use the standard event handler code defined in the "Code Declaration Blocks" section of today's lesson. Try using the Cint() function to convert the text in the text boxes to integers for multiplication, such as Cint(tbNumber1.Text).
Follow Listing 2.1 for guidance.
Build upon the previous exercise by providing multiple Submit buttons that perform the basic arithmetic operations, essentially creating a calculator.