Workshop

IOTA^_^    

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.

Quiz

1:

How does ASP.NET maintain the state of server controls?

2:

What namespace do the ASP.NET Page and LiteralControl classes belong to?

3:

What are the seven namespaces automatically imported into every ASP.NET page?

4:

What does "type-safe" mean?

5:

What is the Common Language Specification?

Exercises

1:

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.

2:

Build upon the previous exercise by providing multiple Submit buttons that perform the basic arithmetic operations, essentially creating a calculator.


    IOTA^_^    
    Top


    Sams Teach Yourself ASP. NET in 21 Days
    Sams Teach Yourself ASP.NET in 21 Days (2nd Edition)
    ISBN: 0672324458
    EAN: 2147483647
    Year: 2003
    Pages: 307
    Authors: Chris Payne

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net