Programming Microsoft® Web Forms

Book description

Windows Web Forms pages can streamline development for a variety of applications—but many Microsoft Windows®–related programming books skip over the details that allow developers to take full advantage of Web Forms. In addition, Version 2.0 of the Microsoft .NET Framework introduces new capabilities that even those familiar with early versions of Web Forms will want to learn to use. Written by well-known columnist and author Douglas Reilly, this book offers a concise, focused tutorial suitable for new and experienced Web Forms developers who want to expedite their productivity with Microsoft Visual Studio® 2005 and .NET Framework 2.0. The book features insightful code samples in Microsoft Visual C#® 2005.

Table of contents

  1. Programming Microsoft® Web Forms
  2. Dedication
  3. A Note Regarding Supplemental Files
  4. Acknowledgments
  5. Introduction
    1. Who Is This Book For?
    2. Organization of This Book
    3. System Requirements
    4. Configuring SQL Server 2005 Express Edition
    5. Prerelease Software
    6. Technology Updates
    7. Code Samples
    8. Support for This Book
      1. Questions and Comments
  6. 1. The Web Forms Environment
    1. What Is a Web Form?
    2. Why Create Web Forms Applications?
      1. Web Forms Can Run Anywhere, on Any Device
      2. Web Forms Can Run Without Installation
      3. Web Forms Are Familiar
      4. Web Forms Applications Scale Well
    3. How Do You Create a Web Form?
    4. Source View and HTML
    5. Understanding Where Code Is Run
    6. Mixing Client and Server Code
    7. Configuring IIS
    8. Conclusion
  7. 2. A Multitude of Controls
    1. The System.Web.UI.WebControls Namespace
      1. The System.Web.UI.Control Class
        1. Literal
        2. PlaceHolder
        3. Repeater
        4. Xml
      2. The System.Web.UI.WebControl Class
        1. Button
        2. Checkbox
        3. RadioButton
        4. HyperLink
        5. Image
        6. ImageButton
        7. Label
        8. Panel
        9. TextBox
        10. Calendar
        11. ListControl
        12. DropDownList
        13. ListBox
        14. RadioButtonList
        15. CheckBoxList
          1. RadioButtonList and CheckBoxList Example
        16. BaseValidator
        17. BaseCompareValidator
        18. CompareValidator
        19. CustomValidator
        20. RangeValidator
        21. RegularExpressionValidator
        22. RequiredFieldValidator
        23. ValidationSummary
        24. A Validation Example
    2. Other Controls
    3. Conclusion
  8. 3. Web Form Layout
    1. HTML Tables 101
      1. HTML Table Width
      2. HTML Table Alignment
      3. Spanning Columns and Rows in HTML Tables
      4. Putting It All Together: A Simple Web Form
    2. Cascading Style Sheets 101
    3. Themes and Skins
    4. Master Pages
    5. The Wizard Control
    6. Conclusion
  9. 4. Working with Web Parts
    1. Web Parts in Action
    2. The Parts of Web Parts
    3. Display Modes and Web Parts
    4. Adding Components
    5. Programmatically Controlling Web Parts
    6. Conclusion
  10. 5. Data Binding
    1. The DataSource Control
      1. The SqlDataSource Control
    2. The GridView Control
      1. Edit Template Mode
      2. Paging
      3. Sorting
      4. Editing
      5. Deleting
      6. Selecting
      7. Using a Custom EditItemTemplate
    3. The DetailsView Control
      1. Selecting a Row in the GridView Control to View in the DetailsView Control
      2. Selecting a Row in the GridView Control to Edit in the DetailsView Control
    4. The MultiView Control
      1. Populating the Details Editing Form
    5. Future Enhancements
    6. Conclusion
  11. 6. Custom Controls
    1. Types of Controls You Can Create
    2. User Controls
      1. Creating a User Control in Visual Studio
      2. Caching a User Control
      3. Creating a User Control by Converting a Page
    3. Custom Server Controls
      1. Building and Installing the Default WebCustomControl Control
      2. Building a Composite Control
      3. Creating a Control That Mixes Client and Server Code
    4. Custom Web Parts
    5. Wrapping Standard Controls for Use in Web Parts
    6. Conclusion
  12. 7. Web Forms User Security and Administration
    1. Administering an ASP.NET 2.0 Site
    2. Provider Configuration
    3. Security
    4. Application
    5. The Login Controls
      1. Login
      2. LoginView
      3. PasswordRecovery
      4. LoginStatus
      5. LoginName
      6. CreateUserWizard
      7. ChangePassword
    6. The BikeBlogSecured Application
    7. Conclusion
  13. 8. Integrating with Windows Forms Applications
    1. WebBrowser Control Example
    2. WebBrowser Control Details
    3. A Tabbed Interface Web Browser
    4. Accessing Content from a WebBrowser Control
    5. Other Ways to Work with Web Data
    6. Conclusion
  14. A. Creating and Deploying Applications in IIS
    1. Creating an Application in IIS
    2. Deploying a Web Forms Application
      1. Deploying an Application Using XCopy Deployment
      2. Deploying an Application Using Visual Studio
      3. Deploying an Application Using a Web Setup Project
      4. Which Deployment Option Is Right for You?
  15. B. About the Author
  16. Index
  17. About the Author
  18. Copyright

Product information

  • Title: Programming Microsoft® Web Forms
  • Author(s):
  • Release date: November 2005
  • Publisher(s): Microsoft Press
  • ISBN: 9780735621794